Compare commits

...

2 Commits

Author SHA1 Message Date
15e28244af fix(ci): jq static binary installieren falls nicht vorhanden
All checks were successful
Nightly Build / build (push) Successful in 4m16s
2026-06-29 09:57:46 +02:00
c1a3b9238d fix(ci): jq statt python3 für JSON-Serialisierung (python3 not found im Runner)
Some checks failed
Nightly Build / build (push) Failing after 4m10s
2026-06-29 07:03:09 +02:00

View File

@@ -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 \
@@ -154,8 +161,13 @@ jobs:
"https://gitea.it-drui.de/api/v1/repos/viewit/KX-Bridge-Release/releases/tags/${TAG}" \
2>/dev/null || true
# Release erstellen — JSON via python3 serialisieren (kein SIGPIPE-Risiko)
python3 .gitea/make_release_json.py "$TAG" "$VERSION" "$BODY_FILE"
# Release erstellen — JSON sicher via jq bauen
jq -n \
--arg tag "$TAG" \
--arg name "KX-Bridge ${VERSION} Nightly" \
--rawfile body "$BODY_FILE" \
'{"tag_name":$tag,"name":$name,"body":$body,"draft":false,"prerelease":true}' \
> /tmp/release_body.json
curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \