Skip to content

Commit

Permalink
add docker labels
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-led committed Nov 4, 2019
1 parent 6aed901 commit 7e889d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@ dockers:
- image_templates:
- '{{ .Env.DOCKER_ORG }}/secrets-init:{{ .Tag }}'
- '{{ .Env.DOCKER_ORG }}/secrets-init:v{{ .Major }}.{{ .Minor }}'
- '{{ .Env.DOCKER_ORG }}/secrets-init:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}'
- '{{ .Env.DOCKER_ORG }}/secrets-init:latest'
binaries:
- secrets-init
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
- "--label=org.label-schema.vcs-ref={{.ShortCommit}}"
- "--label=org.label-schema.vcs-url={{.GitURL}}"
- "--label=org.label-schema.build-date={{.Date}}"

archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
Expand Down

0 comments on commit 7e889d1

Please sign in to comment.