2020-07-24 01:26:03 +00:00
|
|
|
builds:
|
2020-07-24 01:29:05 +00:00
|
|
|
- binary: grype
|
2020-07-24 01:26:03 +00:00
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
# windows not supported yet (due to jotframe)
|
|
|
|
# - windows
|
|
|
|
- linux
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
# Set the modified timestamp on the output binary to the git timestamp (to ensure a reproducible build)
|
|
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
|
|
ldflags: |
|
|
|
|
-w
|
|
|
|
-s
|
|
|
|
-extldflags '-static'
|
2020-07-24 01:29:05 +00:00
|
|
|
-X github.com/anchore/grype/internal/version.version={{.Version}}
|
|
|
|
-X github.com/anchore/grype/internal/version.gitCommit={{.Commit}}
|
|
|
|
-X github.com/anchore/grype/internal/version.buildDate={{.Date}}
|
|
|
|
-X github.com/anchore/grype/internal/version.gitTreeState={{.Env.BUILD_GIT_TREE_STATE}}
|
2020-07-24 01:26:03 +00:00
|
|
|
|
|
|
|
nfpms:
|
|
|
|
- license: "Apache 2.0"
|
|
|
|
maintainer: "Anchore, Inc"
|
2020-07-24 01:29:05 +00:00
|
|
|
homepage: &website "https://github.com/anchore/grype"
|
2020-07-24 01:26:03 +00:00
|
|
|
description: &description "A vulnerability scanner for container images and filesystems"
|
|
|
|
formats:
|
|
|
|
- rpm
|
|
|
|
- deb
|
|
|
|
|
|
|
|
brews:
|
|
|
|
- tap:
|
|
|
|
owner: anchore
|
2020-07-24 01:29:05 +00:00
|
|
|
name: homebrew-grype
|
2020-07-24 01:26:03 +00:00
|
|
|
homepage: *website
|
|
|
|
description: *description
|
|
|
|
|
|
|
|
archives:
|
|
|
|
- format: tar.gz
|
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
|
|
|
|