Skip to content

Commit

Permalink
fix: docker: added labels
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Nov 27, 2018
1 parent 5449d5c commit aec15be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ dockers:
- 'goreleaser/goreleaser:latest-cgo'
dockerfile: Dockerfile.cgo
binary: goreleaser
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
extra_files:
- scripts/entrypoint.sh
- image_templates:
Expand All @@ -38,6 +42,10 @@ dockers:
- 'goreleaser/goreleaser:latest'
dockerfile: Dockerfile
binary: goreleaser
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
extra_files:
- scripts/entrypoint.sh
archive:
Expand Down

0 comments on commit aec15be

Please sign in to comment.