mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
pinniped.dev (#3564)
* pinniped.dev Signed-off-by: GitHub <noreply@github.com> * test aarch64 * fix: insert v prefix into version string * support aarch64 --------- Signed-off-by: GitHub <noreply@github.com> Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
93735a6372
commit
8c42467d03
1 changed files with 29 additions and 0 deletions
29
projects/pinniped.dev/package.yml
Normal file
29
projects/pinniped.dev/package.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/vmware-tanzu/pinniped/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
display-name: pinniped
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: vmware-tanzu/pinniped/releases/tags
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/pinniped
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: '*'
|
||||||
|
script:
|
||||||
|
- go mod download
|
||||||
|
- mkdir -p "{{ prefix }}"/bin
|
||||||
|
- go build -trimpath -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/pinniped ./cmd/pinniped
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
LDFLAGS:
|
||||||
|
- -w
|
||||||
|
- -s
|
||||||
|
- -X go.pinniped.dev/internal/pversion.gitVersion=v{{version}}
|
||||||
|
|
||||||
|
test:
|
||||||
|
- pinniped | grep "Pinniped CLI is the client-side binary"
|
||||||
|
- echo $(pinniped version || true) | grep "v{{version}}"
|
Loading…
Reference in a new issue