mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+github.com/alexellis/k3sup (#3547)
* add alexellis/k3sup * fix test * simpler scripts --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
bf7dd1325e
commit
2936f5c579
26
projects/github.com/alexellis/k3sup/package.yml
Normal file
26
projects/github.com/alexellis/k3sup/package.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
distributable:
|
||||
url: https://github.com/alexellis/k3sup/archive/{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: alexellis/k3sup
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.20
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X github.com/alexellis/k3sup/cmd.Version={{ version }}
|
||||
- -X github.com/alexellis/k3sup/cmd.GitCommit=$( git rev-parse HEAD )
|
||||
linux:
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
script: go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}"/bin/k3sup
|
||||
|
||||
provides:
|
||||
- bin/k3sup
|
||||
|
||||
test: test "$(k3sup version|grep Version|cut -d' ' -f2)" = {{version}}
|
Loading…
Reference in a new issue