-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
97 lines (97 loc) · 2.33 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
project_name: sbom-tool
dist: dist
env:
- GONOPROXY="goproxy.cn"
- GOPRIVATE=
before:
hooks:
- make clean
- go mod tidy
builds:
- main: cmd/sbom-tool/main.go
flags:
- -trimpath
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X gitee.com/JD-opensource/sbom-tool/pkg/config.VERSION={{ .Version }}
archives:
- files:
- README*
- LICENSE*
- docs/*/user-guide.md
- NOTICE
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
changelog:
sort: asc
filters:
exclude:
- '^test:'
- '^chore'
- 'merge conflict'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- Merge request
- go mod tidy
groups:
- title: Dependency updates
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
order: 300
- title: 'New Features'
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: 'Security updates'
regexp: '^.*?sec(\([[:word:]]+\))??!?:.+$'
order: 150
- title: 'Bug fixes'
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: 'Documentation updates'
regexp: ^.*?doc(\([[:word:]]+\))??!?:.+$
order: 400
- title: 'Build process updates'
regexp: ^.*?build(\([[:word:]]+\))??!?:.+$
order: 400
- title: Other work
order: 9999
nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
id: packages
homepage: https://sbom.jd.com
description: SBOM-TOOL is a command-line tool to generates software bill of materials (SBOM) for software projects.
maintainer: JDSBOM <[email protected]>
license: MulanPSL-2.0
vendor: Jingdong Technology Information Technology Co., Ltd.
bindir: /usr/bin
section: utils
contents:
- src: ./LICENSE
dst: /usr/share/doc/sbom-tool/copyright
file_info:
mode: 0644
- src: ./docs
dst: /usr/share/doc/sbom-tool/docs
file_info:
mode: 0644
formats:
- apk
- deb
- rpm
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package