-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy path.goreleaser.yaml
79 lines (74 loc) · 2.09 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
- go mod download
- go mod tidy
builds:
- id: kdp-cli
binary: kdp
goos:
- linux
- darwin
goarch:
- amd64
- arm64
main: ./main.go
ldflags:
- -s -w -X kdp/cmd.CliVersion={{ .Version }} -X kdp/cmd.CliGoVersion={{ .Env.GO_VERSION }} -X kdp/cmd.CliGitCommit={{.ShortCommit}} -X kdp/cmd.CliBuiltAt={{ .CommitDate }} -X kdp/cmd.CliOSArch={{ .Runtime.Goarch }}
env:
- CGO_ENABLED=0
archives:
- format: tar.gz
id: kdp-cli-tgz
wrap_in_directory: '{{ .Os }}-{{ .Arch }}'
builds:
- kdp-cli
name_template: '{{ .ArtifactName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}'
files: [ LICENSE, README.md, README_zh.md ]
- format: zip
id: kdp-cli-zip
builds:
- kdp-cli
wrap_in_directory: '{{ .Os }}-{{ .Arch }}'
name_template: '{{ .ArtifactName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}'
files: [ LICENSE, README.md, README_zh.md ]
checksum:
name_template: 'sha256sums.txt'
changelog:
sort: asc
use: github
filters:
exclude:
- "^test:"
- "^chore"
- "merge conflict"
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: Dependency updates
regexp: '^.*?(Feat|Fix|Chore)\(deps\)!?:.+$'
order: 300
- title: "New Features"
regexp: '^.*?Feat(\(.+\))??!?:.+$'
order: 100
- title: "Security updates"
regexp: '^.*?Sec(\(.+\))??!?:.+$'
order: 150
- title: "Bug fixes"
regexp: '^.*?(Fix|Refactor)(\(.+\))??!?:.+$'
order: 200
- title: "Documentation updates"
regexp: ^.*?Docs?(\(.+\))??!?:.+$
order: 400
- title: "Build process updates"
regexp: ^.*?(Build|CI)(\(.+\))??!?:.+$
order: 400
- title: Other work
order: 9999
release:
name_template: "v{{ .Version }}"
footer: |
**Full Changelog**: https://github.com/linktimecloud/kubernetes-data-platform/compare/{{ .PreviousTag }}...{{ .Tag }}