From 551108e10f0efc3088e01ef1fee11de989344edb Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Wed, 13 Nov 2024 08:37:49 +0200 Subject: [PATCH] Add auroraboot Signed-off-by: Dimitris Karakasilis --- packages/utils/auroraboot/build.yaml | 22 ++++++++++++++++++++++ packages/utils/auroraboot/definition.yaml | 10 ++++++++++ 2 files changed, 32 insertions(+) create mode 100644 packages/utils/auroraboot/build.yaml create mode 100644 packages/utils/auroraboot/definition.yaml diff --git a/packages/utils/auroraboot/build.yaml b/packages/utils/auroraboot/build.yaml new file mode 100644 index 000000000..0a7b779c4 --- /dev/null +++ b/packages/utils/auroraboot/build.yaml @@ -0,0 +1,22 @@ +requires: +- name: "toolchain-go-ubuntu" + category: "development" + version: ">=0" +prelude: +- mkdir go/src/github.com/${GITHUB_ORG}/ -p +- cd go/src/github.com/${GITHUB_ORG}/ && git clone https://github.com/${GITHUB_ORG}/{{ .Values.name }}.git +env: +- GOPATH=/luetbuild/go/ +- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }} +- CGO_ENABLED=0 +- PACKAGE_VERSION={{ .Values.version }} +steps: +- | + PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \ + cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -ldflags="-w -s -X main.version=v$PACKAGE_VERSION" && mv {{.Values.name}} /usr/bin/ + + +- upx -1 /usr/bin/{{.Values.name}} +- chmod +x /usr/bin/{{.Values.name}} +includes: +- /usr/bin/{{.Values.name}} diff --git a/packages/utils/auroraboot/definition.yaml b/packages/utils/auroraboot/definition.yaml new file mode 100644 index 000000000..ba1ab6a25 --- /dev/null +++ b/packages/utils/auroraboot/definition.yaml @@ -0,0 +1,10 @@ +name: auroraboot +category: utils +version: "0.3.1" +labels: + github.repo: "AuroraBoot" + github.owner: "kairos-io" +uri: + - https://github.com/kairos-io/AuroraBoot +license: "Apache-2" +description: "The Kairos bootstrapper"