mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
Add github.com/stern/stern
This commit is contained in:
parent
d059f16e10
commit
d41fa2a739
1 changed files with 27 additions and 0 deletions
27
projects/github.com/stern/stern/package.yml
Normal file
27
projects/github.com/stern/stern/package.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
distributable:
|
||||
url: https://github.com/stern/stern/archive/refs/tags/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: stern/stern
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.21
|
||||
script: |
|
||||
go mod download
|
||||
go build -ldflags="$LDFLAGS" -o $BUILDLOC .
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X github.com/stern/stern/cmd.version={{version}}
|
||||
BUILDLOC: '{{prefix}}/bin/stern'
|
||||
|
||||
provides:
|
||||
- bin/stern
|
||||
|
||||
test:
|
||||
script: |
|
||||
test "$(stern --version)" = "version: {{version}}"
|
Loading…
Reference in a new issue