Skip to content

Commit

Permalink
add build-arg ARCH for building multi-arch images, e.g.
Browse files Browse the repository at this point in the history
ARG ARCH
FROM k8s.gcr.io/build-image/debian-base-${ARCH}:v2.1.3
  • Loading branch information
andyzhangx committed Feb 22, 2021
1 parent 7bc70e5 commit e314a56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.make
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ $(CMDS:%=push-multiarch-%): push-multiarch-%: check-pull-base-ref build-%
--platform=$$os/$$arch \
--file $$(eval echo \$${dockerfile_$$os}) \
--build-arg binary=./bin/$*$$suffix \
--build-arg ARCH=$$arch \
--label revision=$(REV) \
.; \
done; \
Expand Down

0 comments on commit e314a56

Please sign in to comment.