File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ ARG BASE_IMAGE=gcr.io/distroless/static:nonroot
55
66# # Multistage build
77FROM ${BUILDER_IMAGE} AS builder
8+ ARG TARGETARCH
89ENV CGO_ENABLED=0
910ENV GOOS=linux
10- ENV GOARCH=amd64
11+ ENV GOARCH=${TARGETARCH}
1112ARG COMMIT_SHA=unknown
1213ARG BUILD_REF
1314
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ image-build: ## Build the EPP image using Docker Buildx.
242242 --platform=$(PLATFORMS ) \
243243 --build-arg BASE_IMAGE=$(BASE_IMAGE ) \
244244 --build-arg BUILDER_IMAGE=$(BUILDER_IMAGE ) \
245+ --build-arg TARGETARCH=$(TARGETARCH ) \
245246 --build-arg COMMIT_SHA=${GIT_COMMIT_SHA} \
246247 --build-arg BUILD_REF=${BUILD_REF} \
247248 $(PUSH ) \
@@ -309,6 +310,7 @@ bbr-image-build: ## Build the image using Docker Buildx.
309310 --platform=$(PLATFORMS ) \
310311 --build-arg BASE_IMAGE=$(BASE_IMAGE ) \
311312 --build-arg BUILDER_IMAGE=$(BUILDER_IMAGE ) \
313+ --build-arg TARGETARCH=$(TARGETARCH ) \
312314 $(PUSH ) \
313315 $(LOAD ) \
314316 $(BBR_IMAGE_BUILD_EXTRA_OPTS ) ./
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ ARG BASE_IMAGE=gcr.io/distroless/static:nonroot
55
66# # Multistage build
77FROM ${BUILDER_IMAGE} AS builder
8+ ARG TARGETARCH
89ENV CGO_ENABLED=0
910ENV GOOS=linux
10- ENV GOARCH=amd64
11+ ENV GOARCH=${TARGETARCH}
1112ARG COMMIT_SHA=unknown
1213ARG BUILD_REF
1314
Original file line number Diff line number Diff line change 1313 - EXTRA_TAG=$_PULL_BASE_REF
1414 - DOCKER_BUILDX_CMD=/buildx-entrypoint
1515 - GIT_COMMIT_SHA=$_PULL_BASE_SHA
16+ - PLATFORMS=linux/amd64,linux/arm64
1617 - name : gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240718-5ef92b5c36
1718 entrypoint : make
1819 args :
2122 - GIT_TAG=$_GIT_TAG
2223 - EXTRA_TAG=$_PULL_BASE_REF
2324 - DOCKER_BUILDX_CMD=/buildx-entrypoint
25+ - PLATFORMS=linux/amd64,linux/arm64
2426 - name : gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240718-5ef92b5c36
2527 entrypoint : make
2628 args :
3840 - GIT_TAG=$_GIT_TAG
3941 - EXTRA_TAG=$_PULL_BASE_REF
4042 - DOCKER_BUILDX_CMD=/buildx-entrypoint
43+ - PLATFORMS=linux/amd64,linux/arm64
4144 - name : gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240718-5ef92b5c36
4245 entrypoint : make
4346 args :
4851 - GIT_TAG=$_GIT_TAG
4952 - EXTRA_TAG=$_PULL_BASE_REF
5053 - DOCKER_BUILDX_CMD=/buildx-entrypoint
54+ - PLATFORMS=linux/amd64,linux/arm64
5155substitutions :
5256 # _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
5357 # can be used as a substitution
You can’t perform that action at this time.
0 commit comments