-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yaml
65 lines (57 loc) · 1.41 KB
/
.goreleaser.yaml
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
project_name: genval
# setups builds for linux, windows and darwin on amd64 and arm64
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
flags:
# trims path
- -trimpath
ldflags:
- -X sigs.k8s.io/release-utils/version.gitVersion={{ .Tag }}
- -X sigs.k8s.io/release-utils/version.gitCommit={{ .FullCommit }}
- -X sigs.k8s.io/release-utils/version.gitTreeState={{ .GitTreeState }}
- -X sigs.k8s.io/release-utils/version.buildDate={{ .Date }}
checksum:
name_template: 'checksums.txt'
source:
enabled: true
# Adds Changelog to the release
changelog:
use: github
format: "{{.SHA}}: {{.Message}} (@{{.AuthorUsername}})"
sort: asc
groups: # Regex use RE2 syntax as defined here: https://github.com/google/re2/wiki/Syntax.
- title: 'Updates'
regexp: '^.*?update(\([[:word:]]+\))??!?:.+$'
order: 100
- title: 'Bug fixes'
regexp: ^(?i).*?fix\w*(\([[:word:]]+\))??!?:.+$
order: 200
filters:
exclude:
- "^docs:"
- "^test:"
- "^Upgrade:"
- "^WIP:"
- '^.*?Bump(\([[:word:]]+\))?.+$'
- '^.*?[Bot](\([[:word:]]+\))?.+$'
# signs the artifacts
signs:
- cmd: cosign
certificate: '${artifact}.crt'
args:
- sign-blob
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
- "--yes"
# artifacts: checksum
artifacts: all
output: true