Skip to content

Commit d60fdac

Browse files
committed
fix: goreleaser file
1 parent b6cd08c commit d60fdac

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

goreleaser.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
version: 2
22

33
project_name: trivy
4+
builds:
5+
- id: build-linux
6+
main: ./cmd/trivy/
7+
binary: trivy
8+
ldflags:
9+
- -s -w
10+
- "-extldflags '-static'"
11+
- -X github.com/aquasecurity/trivy/pkg/version/app.ver={{.Version}}
12+
env:
13+
- CGO_ENABLED=0
14+
- GOEXPERIMENT=jsonv2
15+
goos:
16+
- linux
17+
goarch:
18+
- amd64
19+
goarm:
20+
- 7
21+
- id: build-bsd
22+
main: ./cmd/trivy/
23+
binary: trivy
24+
ldflags:
25+
- -s -w
26+
- "-extldflags '-static'"
27+
- -X github.com/aquasecurity/trivy/pkg/version/app.ver={{.Version}}
28+
env:
29+
- CGO_ENABLED=0
30+
- GOEXPERIMENT=jsonv2
31+
goos:
32+
- freebsd
33+
goarch:
34+
# modernc.org/sqlite doesn't support freebsd/arm64, etc.
35+
# Also, freebsd/386 is no longer supported in modernc.org/libc
36+
# See: https://gitlab.com/cznic/libc/-/issues/45
37+
- amd64
438

539
nfpms:
640
-

0 commit comments

Comments
 (0)