mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+github.com/zegl/kube-score
This commit is contained in:
parent
27c89c9c14
commit
9b9f4fb3a2
27
projects/github.com/zegl/kube-score/package.yml
Normal file
27
projects/github.com/zegl/kube-score/package.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
distributable:
|
||||
url: https://github.com/zegl/kube-score/archive/v{{ version }}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
provides:
|
||||
- bin/kube-score
|
||||
|
||||
versions:
|
||||
github: zegl/kube-score/releases/tags
|
||||
|
||||
build:
|
||||
script: |
|
||||
go build -ldflags="$LDFLAGS" ./cmd/kube-score
|
||||
mkdir -p "{{ prefix }}"/bin
|
||||
mv kube-score "{{ prefix }}"/bin
|
||||
dependencies:
|
||||
go.dev: ^1.18
|
||||
env:
|
||||
LDFLAGS:
|
||||
- -s -w -X main.version=v{{ version }}
|
||||
linux:
|
||||
# or segmentation fault
|
||||
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
test:
|
||||
kube-score version
|
Loading…
Reference in a new issue