Skip to content

Commit

Permalink
Fix goreleaser docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
devstein committed Oct 10, 2020
1 parent be23b4a commit 1e63447
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .goreleaser.yml
Expand Up @@ -16,20 +16,19 @@ builds:

dockers:
# Templates of the Docker image names.
- image: "viaductoss/{{ .ProjectName }}"
tag_templates:
- "latest"
- "{{ .Tag }}"
- "{{ .Tag }}-{{ .Env.GO_VERSION }}"
- "v{{ .Major }}"
- image_templates:
- "viaductoss/{{ .ProjectName }}:latest"
- "viaductoss/{{ .ProjectName }}:{{ .Tag }}"
- "viaductoss/{{ .ProjectName }}:{{ .Tag }}-{{ .Env.GO_VERSION }}"
- "viaductoss/{{ .ProjectName }}:v{{ .Major }}"

# Template of the docker build flags.
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"

archives:
- replacements:
Expand Down

0 comments on commit 1e63447

Please sign in to comment.