Add edgevpn-next

This commit is contained in:
Ettore Di Giacinto
2022-03-15 18:55:24 +01:00
parent 191d4c655e
commit c4e251ffab
2 changed files with 33 additions and 0 deletions

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

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