mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
new file: projects/budimanjojo.github.io/talhelper/package.yml
This commit is contained in:
parent
99722be4a1
commit
8b75175322
1 changed files with 30 additions and 0 deletions
30
projects/budimanjojo.github.io/talhelper/package.yml
Normal file
30
projects/budimanjojo.github.io/talhelper/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
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:
|
||||
- talhelper --version | grep {{version}}
|
||||
- talhelper gensecret | grep 'bootstraptoken'
|
Loading…
Reference in a new issue