diff --git a/packages/utils/auroraboot/build.yaml b/packages/utils/auroraboot/build.yaml new file mode 100644 index 0000000..0a7b779 --- /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 0000000..ba1ab6a --- /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"