new file: projects/github.com/kubecolor/kubecolor/package.yml

This commit is contained in:
Andrii Riabchenko 2024-03-10 18:49:29 +02:00 committed by Jacob Heider
parent 643c807329
commit 28b4ffbd20

View 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}}