mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-23 18:21:38 +00:00
Re-add elemental package (#449)
This commit is contained in:
parent
4aa7e9efb2
commit
99fd083b17
20
packages/system/elemental/build.yaml
Normal file
20
packages/system/elemental/build.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
requires:
|
||||||
|
- name: "toolchain-go"
|
||||||
|
category: "development"
|
||||||
|
version: ">=0"
|
||||||
|
env:
|
||||||
|
- PATH=$PATH:/usr/local/go/bin
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
- REPO={{( index .Values.labels "github.repo" )}}
|
||||||
|
|
||||||
|
prelude:
|
||||||
|
- PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && git clone --branch v"${PACKAGE_VERSION}" https://github.com/{{( index .Values.labels "github.owner" )}}/$REPO
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- |
|
||||||
|
cd $REPO && GIT_COMMIT=$(git rev-parse HEAD) && \
|
||||||
|
go build -o bin/{{.Values.bin_name}} -ldflags "-s -w -X 'github.com/rancher/elemental-cli/internal/version.version=v${PACKAGE_VERSION}' -X 'github.com/rancher/elemental-cli/internal/version.gitCommit=${GIT_COMMIT}'" && \
|
||||||
|
mv bin/{{.Values.bin_name}} /usr/bin/{{.Values.bin_name}}
|
||||||
|
|
||||||
|
includes:
|
||||||
|
- /usr/bin/{{.Values.bin_name}}
|
8
packages/system/elemental/definition.yaml
Normal file
8
packages/system/elemental/definition.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
name: "elemental-cli"
|
||||||
|
category: "system"
|
||||||
|
version: "0.3.1"
|
||||||
|
bin_name: "elemental"
|
||||||
|
fips: false
|
||||||
|
labels:
|
||||||
|
github.repo: "elemental-cli"
|
||||||
|
github.owner: "kairos-io"
|
Loading…
Reference in New Issue
Block a user