-
Notifications
You must be signed in to change notification settings - Fork 33
/
.goreleaser.yml
33 lines (29 loc) · 1021 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
# The default flags from goreleaser set a "version" variable instead of our
# preferred "_version". The "-w" skips DWARF generation to reduce the
# binary size (https://github.com/golang/go/issues/26074). This will not
# affect usability of panics and profiling.
ldflags: '-w -X main._version={{.Version}}'
# List of replacements generated by goreleaser to match the output of `uname`
# on various systems. This will make the binary more easily curl-able.
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
# Snapshot releases should have the -dev suffix.
snapshot:
name_template: "{{ incpatch .Tag }}-dev"
changelog:
# Skip commit log generation because we'll build ours from the CHANGELOG.md.
skip: true