Skip to content

Commit

Permalink
Improve versioning Docker and labels
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Franssen <marco.franssen@philips.com>
  • Loading branch information
marcofranssen committed Feb 15, 2022
1 parent 993fba4 commit 50435c9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ dockers:
- goos: linux
goarch: amd64
image_templates:
- "philipssoftware/{{ .ProjectName }}:{{ .Tag }}"
- "philipssoftware/{{ .ProjectName }}:{{ .Env.GIT_HASH }}"
- "ghcr.io/philips-labs/{{ .ProjectName }}:{{ .Tag }}"
- "ghcr.io/philips-labs/{{ .ProjectName }}:{{ .Env.GIT_HASH }}"
- "philipssoftware/{{ .ProjectName }}:v{{ .Version }}"
- "philipssoftware/{{ .ProjectName }}:{{ .FullCommit }}"
- "ghcr.io/philips-labs/{{ .ProjectName }}:v{{ .Version }}"
- "ghcr.io/philips-labs/{{ .ProjectName }}:{{ .FullCommit }}"
build_flag_templates:
- "--pull"
- "--label=com.opencontainers.image.created={{.Date}}"
Expand All @@ -50,6 +50,7 @@ dockers:
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.licenses=MIT"
- "--label=org.opencontainers.image.vendor=Koninklijke Philips N.V."
extra_files:
- "Makefile"
- "go.mod"
Expand All @@ -62,7 +63,7 @@ checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"
name_template: "{{ .Version }}-next"

changelog:
sort: asc
Expand Down

0 comments on commit 50435c9

Please sign in to comment.