This commit is contained in:
mudler 2023-02-09 23:05:23 +01:00
parent 1d8f5896f4
commit 2d2f548f74
2 changed files with 28 additions and 0 deletions

View 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}}

View 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"