-
Notifications
You must be signed in to change notification settings - Fork 7
/
.goreleaser.yml
58 lines (55 loc) · 1.08 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
project_name: sysl-catalog
env:
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
before:
hooks:
- go mod tidy
build:
main: main.go
ldflags:
- -s -w -X main.Version=v{{.Version}}
- -X main.GitCommit={{.ShortCommit}}
- -X main.GitFullCommit={{.FullCommit}}
- -X main.BuildDate={{.Date}}
- -X main.BuildOS={{.Os}}/{{.Arch}}
- -s -w -X "main.GoVersion={{.Env.GOVERSION}}"
goos:
- darwin
- linux
- windows
goarch:
- amd64
- 386
goarm:
- 7
archives:
- id: "sysl-catalog"
builds: ['sysl-catalog']
format: tar.gz
format_overrides:
- goos: windows
format: zip
replacements:
darwin: darwin
linux: linux
windows: windows
openbsd: openBSD
netbsd: netBSD
freebsd: freeBSD
dragonfly: dragonFlyBSD
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
files:
- README.md
- LICENSE
checksum:
name_template: '{{.ProjectName}}_{{.Version}}_checksums.txt'
snapshot:
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- typo