Skip to content

Commit

Permalink
ci: add goreleaser docker configs for publishing images
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhop committed Jan 18, 2023
1 parent 76ce5fa commit 4fd9670
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ builds:
- -X github.com/tjhop/mango/internal/config.Commit={{ .Commit }}
binary: mango
main: './cmd/mango'
dockers:
# build latest and specific tag version images
- image_templates:
- "ghcr.io/tjhop/{{.ProjectName}}:{{ .Tag }}"
- "ghcr.io/tjhop/{{.ProjectName}}:latest"
goos: linux
goarch: amd64
use: docker
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}}"
- "--label=org.opencontainers.image.source=https://github.com/tjhop/mango"
- "--label=org.opencontainers.image.description='Configuration management tool written in Go'"
- "--label=org.opencontainers.image.licenses=MIT"
archives:
- replacements:
darwin: Darwin
Expand Down

0 comments on commit 4fd9670

Please sign in to comment.