Different Docker image tags for release and snapshot #4085
-
The goal is to make I've prepared two
How to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
you can't pass ids to the release command. you can use PS: empty image names are ignored, so if you could do something like: dockers:
-
image_templates:
- "{{ if not .IsSnapshot }}repo/name:{{ .Tag }}{{ end }}"
- "{{ if not .IsSnapshot }}repo/name:{{ .Major }}{{ end }}"
- "{{ if not .IsSnapshot }}repo/name:{{ .Major }}.{{ .Minor }}{{ end }}"
- "{{ if not .IsSnapshot }}repo/name:latest{{ end }}"
- "{{ if .IsSnapshot }}repo/name:{{ .Tag }}-SNAPSHOT{{ end }}"
finally, if you want to push snapshots, you'll need to do it manually, or use the nightly feature from goreleaser-pro. |
Beta Was this translation helpful? Give feedback.
you can't pass ids to the release command.
you can use
{{.IsSnapshot}}
in the templates though.PS: empty image names are ignored, so if you could do something like:
finally, if you want to push snapshots, you'll need to do it manually, or use the nightly feature from goreleaser-pro.