Skip to content

Commit ad76147

Browse files
authored
feat: add multi arch support (#148)
* feat: add multi arch support Signed-off-by: Zach Aller <[email protected]> * add goarch: Signed-off-by: Zach Aller <[email protected]> * push latest Signed-off-by: Zach Aller <[email protected]> * can't push latest Signed-off-by: Zach Aller <[email protected]> --------- Signed-off-by: Zach Aller <[email protected]>
1 parent a6f4417 commit ad76147

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.goreleaser.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ builds:
3232

3333
dockers:
3434
- image_templates:
35-
- quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}
35+
- quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}-amd64
3636
dockerfile: release.Dockerfile
3737
skip_push: "{{ .IsSnapshot }}"
3838
use: buildx
@@ -42,7 +42,25 @@ dockers:
4242
- "--label=org.opencontainers.image.title={{.ProjectName}}"
4343
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
4444
- "--label=org.opencontainers.image.version={{.Version}}"
45-
- "--platform=linux/amd64,linux/arm64"
45+
- "--platform=linux/amd64"
46+
- image_templates:
47+
- quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}-arm64
48+
dockerfile: release.Dockerfile
49+
skip_push: "{{ .IsSnapshot }}"
50+
use: buildx
51+
goarch: arm64
52+
build_flag_templates:
53+
- "--pull"
54+
- "--label=org.opencontainers.image.created={{.Date}}"
55+
- "--label=org.opencontainers.image.title={{.ProjectName}}"
56+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
57+
- "--label=org.opencontainers.image.version={{.Version}}"
58+
- "--platform=linux/arm64"
59+
docker_manifests:
60+
- name_template: "quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}"
61+
image_templates:
62+
- "quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}-amd64"
63+
- "quay.io/argoprojlabs/gitops-promoter:{{ .Tag }}-arm64"
4664

4765
archives:
4866
- id: binary

0 commit comments

Comments
 (0)