-
Notifications
You must be signed in to change notification settings - Fork 10
/
.goreleaser.yml
75 lines (67 loc) · 1.46 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
version: 2
release:
prerelease: auto
changelog:
use: github-native
gomod:
proxy: true
env:
- GOPROXY=https://proxy.golang.org,direct
- GOSUMDB=sum.golang.org
builds:
- id: darwin-builds
binary: siftool
goos:
- darwin
goarch:
- amd64
- arm64
main: &build-main ./cmd/siftool
mod_timestamp: &build-timestamp '{{ .CommitTimestamp }}'
env: &build-env
- CGO_ENABLED=0
flags: &build-flags '-trimpath'
ldflags: &build-ldflags |
-s
-w
-X main.version={{ .Version }}
-X main.date={{ .CommitDate }}
-X main.builtBy=goreleaser
-X main.commit={{ .FullCommit }}
- id: linux-builds
binary: siftool
goos:
- linux
goarch:
- '386'
- 'amd64'
- 'arm'
- 'arm64'
- 'mips'
- 'mips64'
- 'mips64le'
- 'mipsle'
- 'ppc64'
- 'ppc64le'
- 'riscv64'
- 's390x'
goarm:
- '6'
- '7'
main: *build-main
mod_timestamp: *build-timestamp
env: *build-env
flags: *build-flags
ldflags: *build-ldflags
archives:
- id: darwin-archives
builds:
- darwin-builds
- id: linux-archives
builds:
- linux-builds
sboms:
- documents:
- '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}.bom.cdx.json'
artifacts: binary
args: ["$artifact", "--file", "$document", "--output", "cyclonedx-json"]