Skip to content

Commit

Permalink
Fix container image tag handling and use token configured in secrets (#…
Browse files Browse the repository at this point in the history
…2981)

Supersedes #2972
  • Loading branch information
brancz authored Sep 10, 2024
2 parents d96cba4 + 153f846 commit 3b6e8ef
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ release:
name: parca-agent
prerelease: auto
draft: false
name_template: 'v{{ .Tag }}'
dockers:
- image_templates: ["ghcr.io/parca-dev/{{ .ProjectName }}:v{{ .Version }}-amd64"]
- image_templates: ["ghcr.io/parca-dev/{{ .ProjectName }}:{{ .Version }}-amd64"]
dockerfile: Dockerfile
use: buildx
build_flag_templates:
Expand All @@ -91,7 +92,7 @@ dockers:
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
- image_templates: ["ghcr.io/parca-dev/{{ .ProjectName }}:v{{ .Version }}-arm64"]
- image_templates: ["ghcr.io/parca-dev/{{ .ProjectName }}:{{ .Version }}-arm64"]
goarch: arm64
dockerfile: Dockerfile
use: buildx
Expand All @@ -106,11 +107,11 @@ dockers:
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
docker_manifests:
- name_template: ghcr.io/parca-dev/{{ .ProjectName }}:v{{ .Version }}
- name_template: ghcr.io/parca-dev/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/parca-dev/{{ .ProjectName }}:v{{ .Version }}-amd64
- ghcr.io/parca-dev/{{ .ProjectName }}:v{{ .Version }}-arm64
- ghcr.io/parca-dev/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/parca-dev/{{ .ProjectName }}:{{ .Version }}-arm64
- name_template: ghcr.io/parca-dev/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/parca-dev/{{ .ProjectName }}:v{{ .Version }}-amd64
- ghcr.io/parca-dev/{{ .ProjectName }}:v{{ .Version }}-arm64
- ghcr.io/parca-dev/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/parca-dev/{{ .ProjectName }}:{{ .Version }}-arm64

0 comments on commit 3b6e8ef

Please sign in to comment.