mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-12 13:32:00 +00:00
Add edgevpn-next
This commit is contained in:
22
packages/edgevpn-next/build.yaml
Normal file
22
packages/edgevpn-next/build.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
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" ) }}
|
||||||
|
- GIT_HASH={{ ( index .Values.labels "git.hash" ) }}
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
steps:
|
||||||
|
- |
|
||||||
|
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \
|
||||||
|
cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && \
|
||||||
|
git checkout {{.Values.hash}} -b build && go build -ldflags="-w -s -X github.com/mudler/edgevpn/internal.Version=v$PACKAGE_VERSION" && mv {{.Values.name}} /usr/bin/
|
||||||
|
- chmod +x /usr/bin/{{.Values.name}}
|
||||||
|
includes:
|
||||||
|
- /usr/bin/{{.Values.name}}
|
11
packages/edgevpn-next/definition.yaml
Normal file
11
packages/edgevpn-next/definition.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
name: edgevpn-next
|
||||||
|
category: utils
|
||||||
|
version: "0.9999"
|
||||||
|
hash: "next"
|
||||||
|
labels:
|
||||||
|
github.repo: "edgepvn"
|
||||||
|
github.owner: "mudler"
|
||||||
|
uri:
|
||||||
|
- https://github.com/mudler/edgevpn
|
||||||
|
license: "GPL-3"
|
||||||
|
description: "The immutable, decentralized, statically built VPN"
|
Reference in New Issue
Block a user