-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
83 lines (74 loc) · 1.8 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Configuration file for creating releases.
# Documentation at http://goreleaser.com
# Quickstart: https://goreleaser.com/quick-start/
# Local testing: goreleaser release --snapshot --clean
# Verify .goreleaser.yaml: goreleaser check
before:
hooks:
- go get -u ./...
- go mod vendor
- go mod tidy
- go vet ./...
builds:
- main: ./cmd/node-packager
id: "build_linux_amd64"
binary: node-packager
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X buildinfo.version={{.Version}} -X buildinfo.commit={{.Commit}} -X buildinfo.date={{ .CommitDate }}
- main: ./cmd/node-packager
id: "build_linux_arm64"
binary: node-packager
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X buildinfo.version={{.Version}} -X buildinfo.commit={{.Commit}} -X buildinfo.date={{ .CommitDate }}
- main: ./cmd/node-packager
id: "build_windows_amd64"
binary: node-packager
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X buildinfo.version={{.Version}} -X buildinfo.commit={{.Commit}} -X buildinfo.date={{ .CommitDate }}
source:
enabled: false
name_template: '{{ .ProjectName }}-{{ .Version }}_source'
archives:
- format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
- go mod tidy