-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.goreleaser.yml
51 lines (45 loc) · 946 Bytes
/
.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
project_name: vulnerability-operator
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarm:
- "6"
- "7"
goarch:
- "amd64"
- "arm64"
ignore:
- goos: linux
goarch: "386"
ldflags:
- -s -w -X main.Version={{.Version}} -X main.Commit={{.Commit}} -X main.Date={{.CommitDate}} -X main.BuiltBy=goreleaser
mod_timestamp: "{{.CommitTimestamp}}"
flags:
- -trimpath
sboms:
- artifacts: archive
args: ["$artifact", "--file", "$document", "--output", "json"]
snapshot:
name_template: "{{ .Version }}"
release:
disable: true
changelog:
disable: true
source:
enabled: true
signs:
- cmd: cosign
certificate: '${artifact}.pem'
args:
- sign-blob
- '-y'
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
artifacts: all
output: true