Skip to content

Commit 86699dc

Browse files
authored
fix: address a missing setup in the Makefile (#340)
Minor fixes Signed-off-by: michaelawyu <[email protected]>
1 parent 7080931 commit 86699dc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,12 @@ docker-build-net-crd-installer: docker-buildx-builder vendor
282282
docker buildx build \
283283
--file docker/$(NET_CRD_INSTALLER_IMAGE_NAME).Dockerfile \
284284
--output=$(OUTPUT_TYPE) \
285-
--platform="linux/amd64" \
285+
--platform=$(TARGET_OS)/$(TARGET_ARCH) \
286286
--pull \
287-
--tag $(REGISTRY)/$(NET_CRD_INSTALLER_IMAGE_NAME):$(NET_CRD_INSTALLER_IMAGE_VERSION) .
287+
--tag $(REGISTRY)/$(NET_CRD_INSTALLER_IMAGE_NAME):$(NET_CRD_INSTALLER_IMAGE_VERSION) \
288+
--progress=$(BUILDKIT_PROGRESS_TYPE) \
289+
--build-arg GOARCH=$(TARGET_ARCH) \
290+
--build-arg GOOS=$(TARGET_OS) .
288291

289292
## -----------------------------------
290293
## Cleanup

0 commit comments

Comments
 (0)