Add auroraboot

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
Dimitris Karakasilis
2024-11-13 08:37:49 +02:00
parent 6d3d62159b
commit fdbd14c6c2
2 changed files with 32 additions and 0 deletions

View File

@@ -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}}

View File

@@ -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"