File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ SHELL = /usr/bin/env bash -o pipefail
24
24
GIT_COMMIT_SHA ?= "$(shell git rev-parse HEAD 2>/dev/null) "
25
25
GIT_TAG ?= $(shell git describe --tags --dirty --always)
26
26
PLATFORMS ?= linux/amd64
27
+ PUBLISH_PLATFORMS ?= linux/amd64,linux/arm64
27
28
DOCKER_BUILDX_CMD ?= docker buildx
28
29
IMAGE_BUILD_CMD ?= $(DOCKER_BUILDX_CMD ) build
29
30
IMAGE_BUILD_EXTRA_OPTS ?=
@@ -66,6 +67,12 @@ SYNCER_IMAGE_BUILD_EXTRA_OPTS += -t $(SYNCER_IMAGE_EXTRA_TAG)
66
67
BBR_IMAGE_BUILD_EXTRA_OPTS += -t $(BBR_IMAGE_EXTRA_TAG )
67
68
endif
68
69
70
+ # Allow `make MULTI=true ...` in CI to switch to multi-arch.
71
+ ifdef MULTI
72
+ PLATFORMS := $(PUBLISH_PLATFORMS )
73
+ endif
74
+
75
+
69
76
# The name of the kind cluster to use for the "kind-load" target.
70
77
KIND_CLUSTER ?= kind
71
78
@@ -199,8 +206,7 @@ multi-platform-init: ## Set up Docker Buildx for multi-platform builds.
199
206
200
207
.PHONY : image-push
201
208
image-push : PUSH=--push # # Build the EPP image and push it to $IMAGE_REPO.
202
- image-push : PLATFORMS=linux/amd64,linux/arm64
203
- image-push : multi-platform-init image-build
209
+ image-push : MULTI=true image-build
204
210
205
211
.PHONY : image-load
206
212
image-load : LOAD=--load # # Build the EPP image and load it in the local Docker registry.
You can’t perform that action at this time.
0 commit comments