Skip to content

Commit

Permalink
add goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
majewsky committed Aug 4, 2020
1 parent 461966c commit e89a625
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
before:
hooks:
- go mod download

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
ldflags:
- -s -w -X main.version={{.Version}}
mod_timestamp: '{{ .CommitTimestamp }}' # Ensure builds are reproducible

archives:
- name_template: '{{ .ProjectName }}-{{ replace .Version "v" "" }}-{{ .Os }}-{{ .Arch }}'

checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"

0 comments on commit e89a625

Please sign in to comment.