From ad761475a8653c109618a50d90eb3a9ec7cf7448 Mon Sep 17 00:00:00 2001 From: Zach Aller Date: Wed, 4 Dec 2024 14:26:15 -0600 Subject: [PATCH] feat: add multi arch support (#148) * feat: add multi arch support Signed-off-by: Zach Aller * add goarch: Signed-off-by: Zach Aller * push latest Signed-off-by: Zach Aller * can't push latest Signed-off-by: Zach Aller --------- Signed-off-by: Zach Aller --- .goreleaser.yaml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 6911603b..301df721 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -32,7 +32,7 @@ builds: dockers: - image_templates: - - quay.io/argoprojlabs/gitops-promoter:{{ .Tag }} + - quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}-amd64 dockerfile: release.Dockerfile skip_push: "{{ .IsSnapshot }}" use: buildx @@ -42,7 +42,25 @@ dockers: - "--label=org.opencontainers.image.title={{.ProjectName}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}" - "--label=org.opencontainers.image.version={{.Version}}" - - "--platform=linux/amd64,linux/arm64" + - "--platform=linux/amd64" + - image_templates: + - quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}-arm64 + dockerfile: release.Dockerfile + skip_push: "{{ .IsSnapshot }}" + use: buildx + goarch: arm64 + build_flag_templates: + - "--pull" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--platform=linux/arm64" +docker_manifests: + - name_template: "quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}" + image_templates: + - "quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}-amd64" + - "quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}-arm64" archives: - id: binary