mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-05 20:40:16 -08:00
Co-authored-by: knqyf263 <knqyf263@users.noreply.github.com> Co-authored-by: nikpivkin <nikita.pivkin@smartforce.io>
43 lines
868 B
YAML
43 lines
868 B
YAML
version: 2
|
|
|
|
project_name: trivy_canary_build
|
|
builds:
|
|
-
|
|
main: ./cmd/trivy/
|
|
binary: trivy
|
|
ldflags:
|
|
- -s -w
|
|
- "-extldflags '-static'"
|
|
- -X github.com/aquasecurity/trivy/pkg/version/app.ver={{.Version}}
|
|
env:
|
|
- CGO_ENABLED=0
|
|
- GOEXPERIMENT=jsonv2
|
|
goos:
|
|
- darwin
|
|
- linux
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ignore:
|
|
- goos: windows
|
|
goarch: arm64
|
|
|
|
archives:
|
|
-
|
|
format: tar.gz
|
|
name_template: >-
|
|
{{ .ProjectName }}_{{ .Version }}_
|
|
{{- if eq .Os "darwin" }}macOS
|
|
{{- else}}{{- title .Os }}{{ end }}-
|
|
{{- if eq .Arch "amd64" }}64bit
|
|
{{- else if eq .Arch "arm64" }}ARM64
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
files:
|
|
- README.md
|
|
- LICENSE
|
|
- contrib/*.tpl
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|