File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -195,13 +195,21 @@ image-build: ## Build the EPP image using Docker Buildx.
195
195
ddocker buildx inspect multiplatform > /dev/null 2>&1 || docker buildx create --name multiplatform --use
196
196
docker run --privileged --rm tonistiigi/binfmt --install all
197
197
docker buildx inspect --bootstrap
198
+
199
+ @bash -ec '\
200
+ PLATFORMS="$(PLATFORMS)"; \
201
+ if echo "$(LOAD)" | grep -q -- "--load"; then \
202
+ echo "⚠️ --load detected; forcing platform to linux/amd64"; \
203
+ PLATFORMS=linux/amd64; \
204
+ fi; \
198
205
$(IMAGE_BUILD_CMD) -t $(IMAGE_TAG) \
199
- --platform=$( PLATFORMS ) \
206
+ --platform=$$ PLATFORMS \
200
207
--build-arg BASE_IMAGE=$(BASE_IMAGE) \
201
208
--build-arg BUILDER_IMAGE=$(BUILDER_IMAGE) \
202
209
--build-arg COMMIT_SHA=${GIT_COMMIT_SHA} \
203
210
--build-arg BUILD_REF=${BUILD_REF} \
204
211
$(PUSH) \
212
+ $(LOAD) \
205
213
$(IMAGE_BUILD_EXTRA_OPTS) ./
206
214
207
215
.PHONY : image-push
You can’t perform that action at this time.
0 commit comments