Skip to content

Commit

Permalink
Merge pull request #222 from vshn/enable_pre-release
Browse files Browse the repository at this point in the history
Enable pre release
  • Loading branch information
corvus-ch authored Dec 22, 2020
2 parents 450d978 + 7b33f43 commit 31d7a45
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,23 @@ snapshot:
name_template: "{{ .Tag }}-snapshot"

dockers:
# For pre releases, updating `latest` and the floating tags of the major
# version does not make sense. So only the image for the exact version should
# be pushed.
# For the lack of a less verbose solution, go templating is used to set the
# image tags to the major version or latest for normal releases. For pre
# releases, all image tags are set to the exact version. This will result in
# having the same image tag tree times in the list. This is fine to do as the
# image will be built only once and tagging is a cheap operation.
- image_templates:
- "docker.io/vshn/k8up:latest"
- "docker.io/vshn/k8up:v{{ .Version }}"
- "docker.io/vshn/k8up:v{{ .Major }}"
- "quay.io/vshn/k8up:latest"
- "quay.io/vshn/k8up:v{{ .Version }}"
- "quay.io/vshn/k8up:v{{ .Major }}"

- "docker.io/vshn/k8up:{{ if .Prerelease }}v{{ .Version }}{{ else }}v{{ .Major }}{{ end }}"
- "quay.io/vshn/k8up:{{ if .Prerelease }}v{{ .Version }}{{ else }}v{{ .Major }}{{ end }}"

- "docker.io/vshn/k8up:{{ if .Prerelease }}v{{ .Version }}{{ else }}latest{{ end }}"
- "quay.io/vshn/k8up:{{ if .Prerelease }}v{{ .Version }}{{ else }}latest{{ end }}"

changelog:
sort: asc
Expand All @@ -34,6 +44,8 @@ changelog:
- '^Merge pull request'

release:
prerelease: auto

github:
owner: vshn
name: k8up
Expand Down

0 comments on commit 31d7a45

Please sign in to comment.