mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-19 00:18:07 +00:00
Add poco
This commit is contained in:
parent
1d8f5896f4
commit
2d2f548f74
18
packages/utils/poco/build.yaml
Normal file
18
packages/utils/poco/build.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
requires:
|
||||
- name: "toolchain-go"
|
||||
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
|
||||
steps:
|
||||
- |
|
||||
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \
|
||||
cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build && mv {{.Values.name}} /usr/bin/
|
||||
- chmod +x /usr/bin/{{.Values.name}}
|
||||
includes:
|
||||
- /usr/bin/{{.Values.name}}
|
10
packages/utils/poco/definition.yaml
Normal file
10
packages/utils/poco/definition.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
name: poco
|
||||
category: utils
|
||||
version: "0.3.1"
|
||||
labels:
|
||||
github.repo: "poco"
|
||||
github.owner: "mudler"
|
||||
uri:
|
||||
- https://github.com/mudler/poco
|
||||
license: "GPL-3"
|
||||
description: "Create statically linked, portable binaries from container images"
|
Loading…
Reference in New Issue
Block a user