⬆️ Bump elemental (#160)

This commit is contained in:
Itxaka 2023-03-24 08:18:43 +01:00 committed by GitHub
parent fc42c1a711
commit b321f72e26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -5,17 +5,15 @@ requires:
env: env:
- PATH=$PATH:/usr/local/go/bin - PATH=$PATH:/usr/local/go/bin
- CGO_ENABLED=0 - CGO_ENABLED=0
- PACKAGE_VERSION={{( index .Values.labels "git.hash" )}}
- ORG={{( index .Values.labels "github.owner" )}}
- REPO={{( index .Values.labels "github.repo" )}} - REPO={{( index .Values.labels "github.repo" )}}
prelude: prelude:
- | - git clone https://github.com/{{( index .Values.labels "github.owner" )}}/$REPO && cd $REPO && git checkout {{( index .Values.labels "git.hash" )}}
git clone https://github.com/$ORG/$REPO && cd $REPO && git checkout ${PACKAGE_VERSION}
steps: 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}} mv bin/{{.Values.bin_name}} /usr/bin/{{.Values.bin_name}}
includes: includes:

View File

@ -1,9 +1,9 @@
name: "elemental-cli" name: "elemental-cli"
category: "system" category: "system"
version: "0.2.0" version: "0.2.0-1"
bin_name: "elemental" bin_name: "elemental"
fips: false fips: false
labels: labels:
github.repo: "elemental-cli" github.repo: "elemental-cli"
github.owner: "kairos-io" github.owner: "kairos-io"
git.hash: "af90aaa068a84fb888ed7280d4e7ff09793cda01" git.hash: "1e05480185b1af1874f43f7c41aa43dd7c781c24"