github.com/khulnasoft/trivy@v0.48.1-0.20231207234930-27df843a75e0/goreleaser-canary.yml (about) 1 project_name: trivy_canary_build 2 builds: 3 - 4 main: cmd/trivy/main.go 5 binary: trivy 6 ldflags: 7 - -s -w 8 - "-extldflags '-static'" 9 - -X github.com/khulnasoft/trivy/pkg/version.ver={{.Version}} 10 env: 11 - CGO_ENABLED=0 12 goos: 13 - darwin 14 - linux 15 - windows 16 goarch: 17 - amd64 18 - arm64 19 ignore: 20 - goos: windows 21 goarch: arm64 22 23 archives: 24 - 25 format: tar.gz 26 name_template: >- 27 {{ .ProjectName }}_{{ .Version }}_ 28 {{- if eq .Os "darwin" }}macOS 29 {{- else}}{{- title .Os }}{{ end }}- 30 {{- if eq .Arch "amd64" }}64bit 31 {{- else if eq .Arch "arm64" }}ARM64 32 {{- else }}{{ .Arch }}{{ end }} 33 files: 34 - README.md 35 - LICENSE 36 - contrib/*.tpl 37 format_overrides: 38 - goos: windows 39 format: zip