Skip to content

Commit d497be9

Browse files
authored
[build] system/metallb: multiarch support (#970)
Add support for metallb multiarch build. Part of #519 and a follow-up to PR #945 (issue #909) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Improved Docker build process for image-controller and image-speaker to allow dynamic control over image loading and enhanced build configuration consistency. No changes to user-facing features. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 6176a18 + 5407ee0 commit d497be9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎packages/system/metallb/Makefile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ image-controller image-speaker:
1616
$(eval VERSION := $(shell yq '.appVersion' charts/metallb/Chart.yaml))
1717
docker buildx build images/metallb \
1818
--provenance false \
19+
--builder=$(BUILDER) \
20+
--platform=$(PLATFORM) \
1921
--target $(TARGET) \
2022
--build-arg VERSION=$(VERSION) \
2123
--tag $(REGISTRY)/metallb-$(TARGET):$(VERSION) \
2224
--cache-from type=registry,ref=$(REGISTRY)/metallb-$(TARGET):latest \
2325
--cache-to type=inline \
2426
--metadata-file images/$(TARGET).json \
2527
--push=$(PUSH) \
26-
--label "org.opencontainers.image.source=https://github.com/cozystack/cozystack"
27-
--load=1
28+
--label "org.opencontainers.image.source=https://github.com/cozystack/cozystack" \
29+
--load=$(LOAD)
2830
REPOSITORY="$(REGISTRY)/metallb-$(TARGET)" \
2931
yq -i '.metallb.$(TARGET).image.repository = strenv(REPOSITORY)' values.yaml
3032
TAG=$(VERSION)@$$(yq e '."containerimage.digest"' images/$(TARGET).json -o json -r) \

0 commit comments

Comments
 (0)