From 818c362060238af75e7c5e80dc0bcbf96b332d7a Mon Sep 17 00:00:00 2001 From: jakobmoellerdev Date: Wed, 13 Nov 2024 10:26:37 +0100 Subject: [PATCH] chore: separate helminstaller image platform and platform --- components/helminstaller/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/helminstaller/Makefile b/components/helminstaller/Makefile index cc51f01a89..b2287ff0ad 100644 --- a/components/helminstaller/Makefile +++ b/components/helminstaller/Makefile @@ -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))))/../.. @@ -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) \