mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
new file: projects/github.com/anchore/grype/package.yml
This commit is contained in:
parent
d033a15877
commit
8137221cf9
1 changed files with 23 additions and 0 deletions
23
projects/github.com/anchore/grype/package.yml
Normal file
23
projects/github.com/anchore/grype/package.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/anchore/grype/archive/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
github: anchore/grype
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: '*'
|
||||||
|
script:
|
||||||
|
- go build $GO_ARGS -ldflags="$LD_FLAGS" ./cmd/grype
|
||||||
|
env:
|
||||||
|
LD_FLAGS:
|
||||||
|
- -s -w
|
||||||
|
- -X main.version={{version}}
|
||||||
|
- -X main.gitCommit=pkgx
|
||||||
|
GO_ARGS:
|
||||||
|
- -trimpath
|
||||||
|
- -o="{{prefix}}/bin/grype"
|
||||||
|
provides:
|
||||||
|
- bin/grype
|
||||||
|
test:
|
||||||
|
script:
|
||||||
|
- grype --version | grep {{version}}
|
Loading…
Reference in a new issue