Skip to content

Commit 210b1df

Browse files
committed
revert ...
1 parent c70132a commit 210b1df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ ifeq ($(do_default),true)
5050
endif
5151
endif
5252

53+
PLATFORM ?= ${PLATFORM}
5354

5455
# The repository and image names default to the official but can be overriden
5556
# via environment variables.
@@ -77,11 +78,11 @@ update:
7778
define build-version
7879
build-$1:
7980
ifeq ($(do_default),true)
80-
$(DOCKER) build --pull -t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1) $1
81+
$(DOCKER) build --pull --platform=$(PLATFORM) -t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1) $1
8182
endif
8283
ifeq ($(do_alpine),true)
8384
ifneq ("$(wildcard $1/alpine)","")
84-
$(DOCKER) build --pull -t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1)-alpine $1/alpine
85+
$(DOCKER) build --pull --platform=$(PLATFORM) -t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1)-alpine $1/alpine
8586
endif
8687
endif
8788
endef

0 commit comments

Comments
 (0)