From e314a56d0750b053d8a0bf6009f68d7316a0f96f Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Sun, 21 Feb 2021 11:57:46 +0000 Subject: [PATCH] add build-arg ARCH for building multi-arch images, e.g. ARG ARCH FROM k8s.gcr.io/build-image/debian-base-${ARCH}:v2.1.3 --- build.make | 1 + 1 file changed, 1 insertion(+) diff --git a/build.make b/build.make index 9b8306c0..1faaf3b9 100644 --- a/build.make +++ b/build.make @@ -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; \