Skip to content

Commit a8d2fb1

Browse files
[tmp] update leeway in build.yml
1 parent 96bf210 commit a8d2fb1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,14 @@ jobs:
266266
[[ "$PR_NO_TEST" = "true" ]] && TEST="--dont-test" || TEST=""
267267
[[ "${PUBLISH_TO_NPM}" = 'true' ]] && NPM_PUBLISH_TRIGGER=$(date +%s%3N) || NPM_PUBLISH_TRIGGER="false"
268268
269+
# tmp: Update leeway from branch to make testing easier
270+
LEEWAY_BRANCH=clu/sbom-cve-2
271+
LEEWAY_REPO_DIR=$(mktemp -d -t leeway-repo-XXXXXXXXXX) && git clone https://github.com/gitpod-io/leeway "$LEEWAY_REPO_DIR" && cd "$LEEWAY_REPO_DIR" && git switch ${LEEWAY_BRANCH} && git pull && go build -o leeway && sudo install -m 755 leeway /usr/bin/ && cd / && rm -rf "$LEEWAY_REPO_DIR"
272+
269273
RESULT=0
270274
set -x
271275
# CI=true is a var set by GHA. Unsetting it for the build, as yarn builds treat warnings as errors if that var is set to true
272-
CI= leeway build \
276+
CI= /usr/bin/leeway build \
273277
--cache $CACHE \
274278
$TEST \
275279
-Dversion=$VERSION \

0 commit comments

Comments
 (0)