From 3e486980eab38939c03c427a9636e77addc2d8b1 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Tue, 8 Aug 2023 09:33:37 -0700 Subject: [PATCH] Only run woodpecker on amd64 and fix lure.sh --- .woodpecker.yml | 6 ++++-- static/lure.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 069cabb..f965c1c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,4 +1,6 @@ -pipeline: +platform: linux/amd64 + +steps: build: image: klakegg/hugo:ext-alpine-ci commands: @@ -24,4 +26,4 @@ pipeline: template: template.nomad environment: - PLUGIN_WATCH_DEPLOYMENT=true - - PLUGIN_WATCH_DEPLOYMENT_TIMEOUT=10m \ No newline at end of file + - PLUGIN_WATCH_DEPLOYMENT_TIMEOUT=10m diff --git a/static/lure.sh b/static/lure.sh index 4723990..a64e0bd 100644 --- a/static/lure.sh +++ b/static/lure.sh @@ -64,7 +64,7 @@ else error "No supported package manager detected!" fi -latestVersion=$(curl -sI 'https://gitea.elara.ws/Elara6331/lure/releases/latest' | grep -o 'location: .*' | rev | cut -d '/' -f1 | rev | tr -d '[:space:]') +latestVersion=$(curl -sI 'https://gitea.elara.ws/Elara6331/lure/releases/latest' | grep -io 'location: .*' | rev | cut -d '/' -f1 | rev | tr -d '[:space:]') info "Found latest LURE version:" $latestVersion fname="$(mktemp -u -p /tmp "lure.XXXXXXXXXX").${pkgFormat}"