|
1 | 1 | version: 2 |
2 | 2 |
|
3 | 3 | 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 | | - - 386 |
19 | | - - arm |
20 | | - - amd64 |
21 | | - - arm64 |
22 | | - - s390x |
23 | | - - ppc64le |
24 | | - goarm: |
25 | | - - 7 |
26 | | - - id: build-bsd |
27 | | - main: ./cmd/trivy/ |
28 | | - binary: trivy |
29 | | - ldflags: |
30 | | - - -s -w |
31 | | - - "-extldflags '-static'" |
32 | | - - -X github.com/aquasecurity/trivy/pkg/version/app.ver={{.Version}} |
33 | | - env: |
34 | | - - CGO_ENABLED=0 |
35 | | - - GOEXPERIMENT=jsonv2 |
36 | | - goos: |
37 | | - - freebsd |
38 | | - goarch: |
39 | | - # modernc.org/sqlite doesn't support freebsd/arm64, etc. |
40 | | - # Also, freebsd/386 is no longer supported in modernc.org/libc |
41 | | - # See: https://gitlab.com/cznic/libc/-/issues/45 |
42 | | - - amd64 |
43 | | - - id: build-macos |
44 | | - main: ./cmd/trivy/ |
45 | | - binary: trivy |
46 | | - ldflags: |
47 | | - - -s -w |
48 | | - - "-extldflags '-static'" |
49 | | - - -X github.com/aquasecurity/trivy/pkg/version/app.ver={{.Version}} |
50 | | - env: |
51 | | - - CGO_ENABLED=0 |
52 | | - - GOEXPERIMENT=jsonv2 |
53 | | - goos: |
54 | | - - darwin |
55 | | - goarch: |
56 | | - - amd64 |
57 | | - - arm64 |
58 | | - goarm: |
59 | | - - 7 |
60 | | - - id: build-windows |
61 | | - main: ./cmd/trivy/ |
62 | | - binary: trivy |
63 | | - ldflags: |
64 | | - - -s -w |
65 | | - - "-extldflags '-static'" |
66 | | - - -X github.com/aquasecurity/trivy/pkg/version/app.ver={{.Version}} |
67 | | - env: |
68 | | - - CGO_ENABLED=0 |
69 | | - - GOEXPERIMENT=jsonv2 |
70 | | - goos: |
71 | | - - windows |
72 | | - goarch: |
73 | | - # modernc.org/sqlite doesn't support windows/386 and windows/arm, etc. |
74 | | - - amd64 |
75 | | - goarm: |
76 | | - - 7 |
77 | | - |
78 | | -release: |
79 | | - extra_files: |
80 | | - - glob: ./bom.json |
81 | | - discussion_category_name: Announcements |
82 | 4 |
|
83 | 5 | nfpms: |
84 | 6 | - |
@@ -111,32 +33,6 @@ nfpms: |
111 | 33 | signature: |
112 | 34 | key_file: '{{ .Env.GPG_FILE }}' |
113 | 35 |
|
114 | | -archives: |
115 | | - - id: archive |
116 | | - format: tar.gz |
117 | | - name_template: >- |
118 | | - {{ .ProjectName }}_{{ .Version }}_ |
119 | | - {{- if eq .Os "darwin" }}macOS |
120 | | - {{- else if eq .Os "linux" }}Linux |
121 | | - {{- else if eq .Os "openbsd" }}OpenBSD |
122 | | - {{- else if eq .Os "netbsd" }}NetBSD |
123 | | - {{- else if eq .Os "freebsd" }}FreeBSD |
124 | | - {{- else if eq .Os "dragonfly" }}DragonFlyBSD |
125 | | - {{- else}}{{- .Os }}{{ end }}- |
126 | | - {{- if eq .Arch "amd64" }}64bit |
127 | | - {{- else if eq .Arch "386" }}32bit |
128 | | - {{- else if eq .Arch "arm" }}ARM |
129 | | - {{- else if eq .Arch "arm64" }}ARM64 |
130 | | - {{- else if eq .Arch "ppc64le" }}PPC64LE |
131 | | - {{- else }}{{ .Arch }}{{ end }} |
132 | | - files: |
133 | | - - README.md |
134 | | - - LICENSE |
135 | | - - contrib/*.tpl |
136 | | - format_overrides: |
137 | | - - goos: windows |
138 | | - format: zip |
139 | | - |
140 | 36 | signs: |
141 | 37 | - cmd: cosign |
142 | 38 | env: |
|
0 commit comments