From 5407ee01ee45ddd3acba97ea0c829ecb33f299c3 Mon Sep 17 00:00:00 2001 From: nbykov0 <166552198+nbykov0@users.noreply.github.com> Date: Thu, 22 May 2025 02:48:21 +0300 Subject: [PATCH] system/metallb: multiarch support Signed-off-by: nbykov0 <166552198+nbykov0@users.noreply.github.com> --- packages/system/metallb/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/system/metallb/Makefile b/packages/system/metallb/Makefile index 1cef5576..fbc3dfa0 100644 --- a/packages/system/metallb/Makefile +++ b/packages/system/metallb/Makefile @@ -16,6 +16,8 @@ image-controller image-speaker: $(eval VERSION := $(shell yq '.appVersion' charts/metallb/Chart.yaml)) docker buildx build images/metallb \ --provenance false \ + --builder=$(BUILDER) \ + --platform=$(PLATFORM) \ --target $(TARGET) \ --build-arg VERSION=$(VERSION) \ --tag $(REGISTRY)/metallb-$(TARGET):$(VERSION) \ @@ -23,8 +25,8 @@ image-controller image-speaker: --cache-to type=inline \ --metadata-file images/$(TARGET).json \ --push=$(PUSH) \ - --label "org.opencontainers.image.source=https://github.com/cozystack/cozystack" - --load=1 + --label "org.opencontainers.image.source=https://github.com/cozystack/cozystack" \ + --load=$(LOAD) REPOSITORY="$(REGISTRY)/metallb-$(TARGET)" \ yq -i '.metallb.$(TARGET).image.repository = strenv(REPOSITORY)' values.yaml TAG=$(VERSION)@$$(yq e '."containerimage.digest"' images/$(TARGET).json -o json -r) \