Skip to content

Commit e314a56

Browse files
committed
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
1 parent 7bc70e5 commit e314a56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: build.make

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ $(CMDS:%=push-multiarch-%): push-multiarch-%: check-pull-base-ref build-%
149149
--platform=$$os/$$arch \
150150
--file $$(eval echo \$${dockerfile_$$os}) \
151151
--build-arg binary=./bin/$*$$suffix \
152+
--build-arg ARCH=$$arch \
152153
--label revision=$(REV) \
153154
.; \
154155
done; \

0 commit comments

Comments
 (0)