2020-08-11 17:23:56 +02:00
|
|
|
# This is an example goreleaser.yaml file with some sane defaults.
|
|
|
|
# Make sure to check the documentation at http://goreleaser.com
|
|
|
|
builds:
|
|
|
|
- env:
|
2020-08-11 17:39:35 +02:00
|
|
|
- CGO_ENABLED=1
|
2020-08-11 17:23:56 +02:00
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
ldflags:
|
|
|
|
- -X "{{ .Env.IMPORTPATH }}/meta.semVersion={{ .Tag }}" -X "{{ .Env.IMPORTPATH }}/meta.version={{ .Env.VERSIONSHORT }}" -X "{{ .Env.IMPORTPATH }}/meta.versionLong={{ .Env.VERSIONLONG }}" -X "{{ .Env.IMPORTPATH }}/meta.commitMsg={{ .Env.COMMITMSG }}"
|
|
|
|
archives:
|
|
|
|
- id: zip
|
|
|
|
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
|
|
|
|
replacements:
|
|
|
|
linux: Linux
|
|
|
|
amd64: x86_64
|
|
|
|
format: zip
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
|
|
|
name_template: "{{ .Tag }}-next"
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|