mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
+aquasecurity.github.io/trivy (#4923)
* new file: projects/aquasecurity.github.io/trivy/package.yml * gcc? * and curl.se/ca-certs
This commit is contained in:
parent
b2ba9aff7a
commit
a83da1f83b
1 changed files with 36 additions and 0 deletions
36
projects/aquasecurity.github.io/trivy/package.yml
Normal file
36
projects/aquasecurity.github.io/trivy/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
distributable:
|
||||
url: git+https://github.com/aquasecurity/trivy.git
|
||||
ref: ${{version.tag}}
|
||||
|
||||
versions:
|
||||
github: aquasecurity/trivy
|
||||
|
||||
dependencies:
|
||||
curl.se/ca-certs: '*'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: '>=1.21'
|
||||
linux:
|
||||
# running gcc failed: exit status 1
|
||||
gnu.org/gcc: '*'
|
||||
script:
|
||||
- go build $ARGS -ldflags="$LDFLAGS" ./cmd/trivy
|
||||
env:
|
||||
ARGS:
|
||||
- -trimpath
|
||||
- -o={{prefix}}/bin/trivy
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X github.com/aquasecurity/trivy/pkg/version.ver={{version}}
|
||||
linux:
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
provides:
|
||||
- bin/trivy
|
||||
|
||||
test:
|
||||
- trivy image alpine:3.10
|
||||
- trivy --version | grep {{version}}
|
Loading…
Reference in a new issue