mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-07 11:04:26 +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
|
- mkdir go/src/github.com/${GITHUB_ORG}/ -p
|
||||||
- |
|
- |
|
||||||
cd go/src/github.com/${GITHUB_ORG}/ && \
|
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:
|
env:
|
||||||
- GOPATH=/luetbuild/go/
|
- GOPATH=/luetbuild/go/
|
||||||
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
|
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
|
||||||
|
- GITHUB_REPO={{ ( index .Values.labels "github.repo" ) }}
|
||||||
- GIT_HASH={{ ( index .Values.labels "git.hash" ) }}
|
- GIT_HASH={{ ( index .Values.labels "git.hash" ) }}
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
steps:
|
steps:
|
||||||
- |
|
- |
|
||||||
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \
|
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \
|
||||||
cd go/src/github.com/${GITHUB_ORG}/{{ .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 {{.Values.name}} /usr/bin/
|
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/{{.Values.name}}
|
- chmod +x /usr/bin/${GITHUB_REPO}
|
||||||
includes:
|
|
||||||
- /usr/bin/{{.Values.name}}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user