Skip to content

Commit

Permalink
chore: separate helminstaller image platform and platform
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmoellerdev committed Nov 13, 2024
1 parent bda10d4 commit 818c362
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/helminstaller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ IMAGE := $(NAME)
COMPONENT := $(PROVIDER)/toi/installers/$(NAME)
OCMREPO ?= ghcr.io/$(GITHUBORG)/ocm
MULTI ?= true
PLATFORMS ?= linux/amd64 linux/arm64
IMAGE_PLATFORMS ?= linux/amd64 linux/arm64
PLATFORMS ?= $(IMAGE_PLATFORMS)
CTF_TYPE ?= directory

REPO_ROOT := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))/../..
Expand Down Expand Up @@ -98,7 +99,7 @@ push-image:
multi: $(GEN)/image.$(NAME).multi

$(GEN)/image.$(NAME).multi: $(GEN)/.exists Dockerfile $(CMDSRCS) $(OCMSRCS)
for i in $(PLATFORMS); do \
for i in $(IMAGE_PLATFORMS); do \
tag=$$(echo $$i | sed -e s:/:-:g); \
echo building platform $$i; \
docker buildx build --load -t $(IMAGE):$(VERSION)-$$tag --platform $$i --file Dockerfile $(REPO_ROOT) \
Expand Down

0 comments on commit 818c362

Please sign in to comment.