-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
98 lines (87 loc) · 2.23 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
98
project_name: circonus-logwatch
before:
hooks:
- go mod tidy
- cmd: golangci-lint run
env:
- GOOS=linux
- govulncheck ./...
builds:
-
id: clw
main: main.go
binary: sbin/circonus-logwatchd
env:
- CGO_ENABLED=0
goos:
- linux
- freebsd
goarch:
- amd64
ignore:
-
goarch: 386
flags:
- -trimpath
ldflags:
- -s
- -w
- -extldflags "-static"
- -X github.com/circonus-labs/circonus-logwatch/internal/release.VERSION={{.Version}}
- -X github.com/circonus-labs/circonus-logwatch/internal/release.COMMIT={{.ShortCommit}}
- -X github.com/circonus-labs/circonus-logwatch/internal/release.DATE={{.Date}}
- -X github.com/circonus-labs/circonus-logwatch/internal/release.TAG={{.Tag}}
archives:
-
id: default
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}_{{.Arch}}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- CHANGELOG.md
- service/*
- etc/example-circonus-logwatch.yaml
- etc/log.d/README.md
release:
github:
owner: circonus-labs
name: circonus-logwatch
prerelease: auto
changelog:
use: git
sort: desc
abbrev: 0
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Dependencies'
regexp: "^.*build(deps):+.*$"
order: 2
- title: Others
order: 999
filters:
exclude:
- '^docs:'
- typo
checksum:
name_template: "{{.ProjectName}}_checksums.txt"
snapshot:
name_template: '{{ incpatch .Version }}-devel'
sboms:
- artifacts: archive
args: ["$artifact", "--output", "cyclonedx-json@1.5=$document"]
env:
- SYFT_GOLANG_SEARCH_LOCAL_MOD_CACHE_LICENSES=true
- SYFT_GOLANG_SEARCH_REMOTE_LICENSES=true
after:
hooks:
- cmd: bash -c 'for b in *.sbom; do grype -q --add-cpes-if-none $b; done'
dir: ./dist