mirror of
https://github.com/ivabus/pantry
synced 2024-11-09 18:15:18 +03:00
+talos.dev (#5561)
* new file: projects/talos.dev/package.yml * modified: projects/talos.dev/package.yml
This commit is contained in:
parent
32192613d9
commit
9b4bee964d
33
projects/talos.dev/package.yml
Normal file
33
projects/talos.dev/package.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
distributable:
|
||||
url: https://github.com/siderolabs/talos/archive/refs/tags/{{version.tag}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: siderolabs/talos
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.21
|
||||
linux:
|
||||
# invalid linker name in argument '-fuse-ld=gold'
|
||||
gnu.org/gcc: '*'
|
||||
script:
|
||||
go build $ARGS -ldflags="$LDFLAGS" ./cmd/talosctl
|
||||
env:
|
||||
ARGS:
|
||||
- -trimpath
|
||||
- -o={{prefix}}/bin/talosctl
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
linux:
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
provides:
|
||||
- bin/talosctl
|
||||
|
||||
test:
|
||||
- talosctl help | grep 'A CLI for out-of-band management of Kubernetes nodes created by Talos'
|
||||
- talosctl gen config --version v1alpha1 test_cluster 127.0.0.1:2222 2>out.log || true
|
||||
- cat out.log | grep 'https://127.0.0.1:2222'
|
Loading…
Reference in a new issue