Skip to content

Commit 3fe6439

Browse files
committed
Optionally consume Leeway from git
1 parent ad24506 commit 3fe6439

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.werft/build.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,15 @@ pod:
241241
echo "done" \
242242
) | werft log slice "chowning /workspace and $GOCACHE"
243243
244+
{{ if .Annotations.leewayfromgit }}
245+
( \
246+
LEEWAY_SRC="github.com/gitpod-io/leeway@{{ .Annotations.leewayfromgit }}" && \
247+
echo "Installing Leeway from $LEEWAY_SRC" && \
248+
GOBIN=$(pwd) go install "$LEEWAY_SRC" && \
249+
sudo mv leeway $(dirname $(which leeway))
250+
) | werft log slice "Building fresh Leeway binary from source"
251+
{{ end }}
252+
244253
( \
245254
mkdir -p /workspace/.ssh && \
246255
cp /mnt/secrets/harvester-vm-ssh-keys/id_rsa /workspace/.ssh/id_rsa_harvester_vm && \

0 commit comments

Comments
 (0)