mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-16 15:07:59 +00:00
⬆️ Bump elemental (#160)
This commit is contained in:
parent
fc42c1a711
commit
b321f72e26
@ -5,17 +5,15 @@ requires:
|
||||
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}
|
||||
- git clone https://github.com/{{( index .Values.labels "github.owner" )}}/$REPO && cd $REPO && git checkout {{( index .Values.labels "git.hash" )}}
|
||||
|
||||
steps:
|
||||
- |
|
||||
cd $REPO && make GIT_TAG={{.Values.version}}+kairos build && \
|
||||
cd $REPO && GIT_COMMIT=$(git rev-parse HEAD) && GIT_TAG=$(git describe --abbrev=0 --tags 2>/dev/null) && \
|
||||
go build -o bin/{{.Values.bin_name}} -ldflags "-s -w -X 'github.com/rancher/elemental-cli/internal/version.version=${GIT_TAG}' -X 'github.com/rancher/elemental-cli/internal/version.gitCommit=${GIT_COMMIT}'" && \
|
||||
mv bin/{{.Values.bin_name}} /usr/bin/{{.Values.bin_name}}
|
||||
|
||||
includes:
|
||||
|
@ -1,9 +1,9 @@
|
||||
name: "elemental-cli"
|
||||
category: "system"
|
||||
version: "0.2.0"
|
||||
version: "0.2.0-1"
|
||||
bin_name: "elemental"
|
||||
fips: false
|
||||
labels:
|
||||
github.repo: "elemental-cli"
|
||||
github.owner: "kairos-io"
|
||||
git.hash: "af90aaa068a84fb888ed7280d4e7ff09793cda01"
|
||||
git.hash: "1e05480185b1af1874f43f7c41aa43dd7c781c24"
|
||||
|
Loading…
Reference in New Issue
Block a user