Skip to content

Commit

Permalink
Update GoReleaser config
Browse files Browse the repository at this point in the history
Discard custom archive name overrides. The provided defaults are more popular among similar projects.
Also, set "zip" as the archive format for all artifacts, since that's the most common approach suitable for all platforms.
  • Loading branch information
legal90 committed Apr 9, 2021
1 parent 1540387 commit 3e617b0
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,18 @@ builds:
goarch: 386

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
- format: zip

checksum:
name_template: 'checksums.txt'

dockers:
- image_templates:
- dockerfile: Dockerfile
goos: linux
goarch: amd64
image_templates:
- 'legal90/{{.ProjectName}}:{{ .Tag }}'
- 'legal90/{{.ProjectName}}:latest'
dockerfile: Dockerfile
binaries:
- '{{.ProjectName}}'
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand Down

0 comments on commit 3e617b0

Please sign in to comment.