mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-19 17:54:13 +00:00
Add auroraboot
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
22
packages/utils/auroraboot/build.yaml
Normal file
22
packages/utils/auroraboot/build.yaml
Normal 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}}
|
10
packages/utils/auroraboot/definition.yaml
Normal file
10
packages/utils/auroraboot/definition.yaml
Normal 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"
|
Reference in New Issue
Block a user