34 lines
832 B
YAML
34 lines
832 B
YAML
# This is an example .goreleaser.yml file with some sane defaults.
|
|
# Make sure to check the documentation at http://goreleaser.com
|
|
before:
|
|
hooks:
|
|
# You may remove this if you don't use go modules.
|
|
- go mod download
|
|
# you may remove this if you don't need go generate
|
|
# - go generate ./...
|
|
builds:
|
|
- ldflags: '-s -w -linkmode external -extldflags "-static" -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser'
|
|
env:
|
|
- CGO_ENABLED=1
|
|
flags:
|
|
- -tags=netgo
|
|
goos:
|
|
- linux
|
|
# - windows
|
|
# - darwin
|
|
goarch:
|
|
- amd64
|
|
|
|
archives:
|
|
checksum:
|
|
name_template: 'checksums.txt'
|
|
snapshot:
|
|
name_template: "{{ .Tag }}-next"
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|
|
- '^chore:'
|