diff --git a/packages/utils/poco/build.yaml b/packages/utils/poco/build.yaml new file mode 100644 index 0000000..e7a476f --- /dev/null +++ b/packages/utils/poco/build.yaml @@ -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}} diff --git a/packages/utils/poco/definition.yaml b/packages/utils/poco/definition.yaml new file mode 100644 index 0000000..3f85c09 --- /dev/null +++ b/packages/utils/poco/definition.yaml @@ -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"