Add static Piper asset service
Build and publish static assets / publish (push) Failing after 9s

This commit is contained in:
Ein Anderssono
2026-10-16 07:24:54 +02:00
commit 4ebe1bb9ec
22 changed files with 1215 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
grep -q 'runAsNonRoot: true' deploy/helm/ai-spel-static/templates/deployment.yaml
grep -q 'readOnlyRootFilesystem: true' deploy/helm/ai-spel-static/templates/deployment.yaml
grep -q 'maxUnavailable: 0' deploy/helm/ai-spel-static/values.yaml
grep -q 'maxSurge: 1' deploy/helm/ai-spel-static/values.yaml
grep -q 'path: /static' deploy/helm/ai-spel-static/templates/ingress.yaml
grep -q 'max-age=31536000, immutable' nginx/default.conf
grep -q 'application/javascript js mjs;' nginx/default.conf
grep -q 'application/wasm wasm;' nginx/default.conf
grep -Fq 'try_files $uri =404;' nginx/default.conf
node --test tests/*.test.cjs
echo 'Static asset source checks passed.'