mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
new file: projects/github.com/kubecolor/kubecolor/package.yml
This commit is contained in:
parent
643c807329
commit
28b4ffbd20
30
projects/github.com/kubecolor/kubecolor/package.yml
Normal file
30
projects/github.com/kubecolor/kubecolor/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/kubecolor/kubecolor/archive/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: kubecolor/kubecolor
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.21
|
||||||
|
script:
|
||||||
|
go build $ARGS -ldflags="$LDFLAGS" .
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X main.Version={{version}}
|
||||||
|
ARGS:
|
||||||
|
- -trimpath
|
||||||
|
- -o={{prefix}}/bin/kubecolor
|
||||||
|
linux:
|
||||||
|
ARGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/kubecolor
|
||||||
|
|
||||||
|
test:
|
||||||
|
- kubecolor --kubecolor-version | grep {{version}}
|
Loading…
Reference in a new issue