-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
56 lines (56 loc) · 1.01 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
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
flags:
- -v
- -trimpath
ldflags:
- -s
- -w
- -X main.version={{ .Version }}
- -X main.commit={{ .Commit }}
- -X main.date={{ .CommitDate }}
mod_timestamp: '{{ .CommitTimestamp }}'
sboms:
- documents:
- "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}.bom.json"
artifacts: binary
cmd: cyclonedx-gomod
args:
- app
- -licenses
- -packages
- -json
- -output
- $document
- ../
env:
- GOARCH={{ .Arch }}
- GOOS={{ .Os }}
- CGO_ENABLED=0
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
snapshot:
name_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}'
release:
draft: true
prerelease: auto
archives:
- format_overrides:
- goos: windows
format: zip
files:
- '*.csv'
- example.com-*.pem