Skip to content

Commit

Permalink
goreleaser: Don't prefix docker image with v
Browse files Browse the repository at this point in the history
The version should have the v as part of the name for a release.
  • Loading branch information
metalmatze committed Aug 26, 2024
1 parent 3c79a81 commit d12fff4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ release:
prerelease: auto
draft: false
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 +91,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 +106,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 d12fff4

Please sign in to comment.