Skip to content

Commit

Permalink
Add auroraboot
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily committed Nov 13, 2024
1 parent 6d3d621 commit fdbd14c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/utils/auroraboot/build.yaml
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions packages/utils/auroraboot/definition.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit fdbd14c

Please sign in to comment.