Skip to content

Commit

Permalink
publish Docker images with goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
displague committed Aug 16, 2020
1 parent f077659 commit 6086e7d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,24 @@ builds:
goarch: arm64
- goos: darwin
goarch: arm
dockers:
- image_templates:
- 'displague/tink-server:{{ .Tag }}'
- 'displague/tink-server:v{{ .Major }}.{{ .Minor }}'
- 'displague/tink-server:latest'
dockerfile: ./cmd/tink-server/Dockerfile
binaries:
- tink-server
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=repository=http://github.com/tinkerbell/tink"
- "--label=homepage=https://tinkerbell.org"
- "--label=maintainer=Tinkerbell Team <hello@tinkerbell.org>"
archives:
- format: binary
name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
Expand Down

0 comments on commit 6086e7d

Please sign in to comment.