mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
6a58b304f6
closes #6314
32 lines
649 B
YAML
32 lines
649 B
YAML
distributable:
|
|
url: https://github.com/budimanjojo/talhelper/archive/refs/tags/{{version.tag}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: budimanjojo/talhelper
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.21
|
|
script: go build $ARGS -ldflags="$LDFLAGS"
|
|
env:
|
|
ARGS:
|
|
- -trimpath
|
|
- -o={{prefix}}/bin/talhelper
|
|
LDFLAGS:
|
|
- -s
|
|
- -w
|
|
- -X github.com/budimanjojo/talhelper/cmd.version={{version}}
|
|
linux:
|
|
LDFLAGS:
|
|
- -buildmode=pie
|
|
|
|
provides:
|
|
- bin/talhelper
|
|
|
|
test:
|
|
# removed in v3, oddly
|
|
- run: talhelper --version | grep {{version}}
|
|
if: <3
|
|
- talhelper gensecret | grep 'bootstraptoken'
|