Publish static service version as JSON
Build and publish static assets / publish (push) Successful in 2m28s

This commit is contained in:
Ein Anderssono
2026-10-16 07:35:54 +02:00
parent 43dd54ebfe
commit cc9ee73a5f
6 changed files with 15 additions and 2 deletions
+3 -2
View File
@@ -40,6 +40,7 @@ jobs:
test -s public/static/piper-wasm-v1/voices/sv/sv_SE/lisa/medium/sv_SE-lisa-medium.onnx
test -s public/static/piper-wasm-v1/voices/sv/sv_SE/nst/medium/sv_SE-nst-medium.onnx
test -s public/static/piper-wasm-v1/voices/ATTRIBUTION.txt
grep -q 'version.json' Dockerfile
- name: Ensure Helm is available
shell: bash
@@ -141,11 +142,11 @@ jobs:
ready=false
for attempt in $(seq 1 120); do
deployed="$(curl -fsS https://ai-spel.k3s.k0.nu/static/version.txt 2>/dev/null || true)"
deployed="$(curl -fsS https://ai-spel.k3s.k0.nu/static/version.json 2>/dev/null | python3 -c 'import json,sys; print(json.load(sys.stdin)["version"])' 2>/dev/null || true)"
if [[ "$deployed" == "$version" ]]; then ready=true; break; fi
sleep 5
done
[[ "$ready" == true ]] || { echo "Static service did not report version $version"; exit 1; }
[[ "$ready" == true ]] || { echo "Static service did not report version $version in version.json"; exit 1; }
for path in \
/static/piper-wasm-v1/onnx/ort-wasm-simd-threaded.mjs \
/static/piper-wasm-v1/onnx/ort-wasm-simd-threaded.wasm \