mirror of
https://github.com/kairos-io/packages.git
synced 2025-07-31 23:27:40 +00:00
⚙️ Build fixups
This commit is contained in:
parent
c4e251ffab
commit
cd25d81497
@ -6,17 +6,16 @@ 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
|
||||
git clone https://github.com/${GITHUB_ORG}/${GITHUB_REPO}.git
|
||||
env:
|
||||
- GOPATH=/luetbuild/go/
|
||||
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
|
||||
- GITHUB_REPO={{ ( index .Values.labels "github.repo" ) }}
|
||||
- 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}}
|
||||
cd go/src/github.com/${GITHUB_ORG}/${GITHUB_REPO}/ && \
|
||||
git checkout {{.Values.hash}} -b build && go build -ldflags="-w -s -X github.com/mudler/edgevpn/internal.Version=v$PACKAGE_VERSION" && mv $GITHUB_REPO /usr/bin/
|
||||
- chmod +x /usr/bin/${GITHUB_REPO}
|
||||
|
Loading…
Reference in New Issue
Block a user