-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
83 lines (75 loc) · 1.79 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
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.buildVersion={{.Version}} -X main.buildCommit={{.ShortCommit}} -X main.buildDate={{.Date}}
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
goarm: [6,7]
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
snapshot:
# Allows you to change the name of the generated snapshot
# Default is `SNAPSHOT-{{.ShortCommit}}`.
name_template: '{{ .Version }}+{{.ShortCommit}}'
archives:
- name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- LICENSE*
- README*
- CHANGELOG*
- pkg/services/*
- pkg/config.example.yml
- pkg/target.example.yml
checksum:
name_template: '{{ .ProjectName }}_v{{ .Version }}_checksums.txt'
algorithm: sha256
changelog:
skip: false
sort: asc
groups:
- title: 'New Features'
regexp: "^feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug Fixes'
regexp: "^fix[(\\w)]*:+.*$"
order: 10
- title: 'Other Work'
order: 999
filters:
exclude:
- '^docs:'
- '^test:'
- '^blds:'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
release:
# If set to true, will not auto-publish the release.
draft: false
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
prerelease: auto
# You can change the name of the GitHub release.
name_template: "{{.Tag}}"