Skip to content

Commit

Permalink
feat: add multi arch support (#148)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
zachaller authored Dec 4, 2024
1 parent a6f4417 commit ad76147
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ad76147

Please sign in to comment.