From 15e28244afef6ce09a93c860d94ef497a9e7d22b Mon Sep 17 00:00:00 2001 From: viewit Date: Mon, 29 Jun 2026 09:57:46 +0200 Subject: [PATCH] fix(ci): jq static binary installieren falls nicht vorhanden --- .gitea/workflows/nightly.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/nightly.yml b/.gitea/workflows/nightly.yml index 3e3be98..2a625bd 100644 --- a/.gitea/workflows/nightly.yml +++ b/.gitea/workflows/nightly.yml @@ -140,13 +140,20 @@ jobs: git tag "$TAG" git push https://gitea-actions:${GITEA_TOKEN}@gitea.it-drui.de/viewit/KX-Bridge-Release.git "$TAG" - # curl installieren falls nötig + # curl + jq installieren falls nötig if ! command -v curl >/dev/null 2>&1; then apk add --no-cache curl 2>/dev/null || \ { wget -qO /usr/local/bin/curl \ "https://github.com/moparisthebest/static-curl/releases/download/v8.6.0/curl-amd64" \ && chmod +x /usr/local/bin/curl; } fi + if ! command -v jq >/dev/null 2>&1; then + ARCH=$(uname -m) + JQ_ARCH="amd64"; [ "$ARCH" = "aarch64" ] && JQ_ARCH="arm64" + wget -qO /usr/local/bin/jq \ + "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-${JQ_ARCH}" + chmod +x /usr/local/bin/jq + fi # Altes Release löschen falls vorhanden curl -s -X DELETE \