Add elemental-cli package

This commit is contained in:
Ettore Di Giacinto
2022-09-20 14:10:19 +00:00
parent 9dca044487
commit 78702adfdb
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
requires:
- name: "toolchain-go"
category: "development"
version: ">=0"
env:
- PATH=$PATH:/usr/local/go/bin
- CGO_ENABLED=0
- PACKAGE_VERSION={{( index .Values.labels "git.hash" )}}
- ORG={{( index .Values.labels "github.owner" )}}
- REPO={{( index .Values.labels "github.repo" )}}
prelude:
- |
git clone https://github.com/$ORG/$REPO && cd $REPO && git checkout ${PACKAGE_VERSION}
steps:
- |
cd $REPO && make build && \
mv bin/{{.Values.bin_name}} /usr/bin/{{.Values.bin_name}}
includes:
- /usr/bin/{{.Values.bin_name}}

View File

@@ -0,0 +1,12 @@
name: "elemental-cli"
category: "system"
version: "0.20220808"
bin_name: "elemental"
fips: false
labels:
github.repo: "elemental-cli"
github.owner: "rancher"
autobump.revdeps: "true"
autobump.strategy: "git_hash"
autobump.git.branch: "main"
git.hash: "8a7e7a1098ca9e527a4a075240092b4a4d56b390"