feat: Sprint 13 — Production Hardening (security fixes, CI gate, rate limiting, tests)
Deploy to TrueNAS / deploy (push) Failing after 12s
Deploy to TrueNAS / deploy (push) Failing after 12s
This commit is contained in:
@@ -38,6 +38,19 @@ jobs:
|
||||
docker version --format 'docker {{.Server.Version}}'
|
||||
docker compose version
|
||||
|
||||
- name: Run backend tests
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mvn test --batch-mode -f pom.xml
|
||||
|
||||
- name: Frontend type check
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cd cannamanage-frontend
|
||||
corepack enable
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm run lint
|
||||
|
||||
- name: Build images
|
||||
run: |
|
||||
set -euo pipefail
|
||||
@@ -66,11 +79,16 @@ jobs:
|
||||
|
||||
- name: Verify frontend
|
||||
run: |
|
||||
if wget -q -O /dev/null http://192.168.188.119:3000; then
|
||||
echo "✅ Frontend responding on :3000"
|
||||
else
|
||||
echo "⚠️ Frontend not responding yet (may still be starting)"
|
||||
fi
|
||||
for i in $(seq 1 10); do
|
||||
if wget -q -O /dev/null http://192.168.188.119:3000; then
|
||||
echo "✅ Frontend responding on :3000"
|
||||
exit 0
|
||||
fi
|
||||
echo " attempt $i/10 — waiting 5s"
|
||||
sleep 5
|
||||
done
|
||||
echo "❌ Frontend did not respond"
|
||||
exit 1
|
||||
|
||||
- name: Prune dangling images
|
||||
run: docker image prune -f || true
|
||||
|
||||
Reference in New Issue
Block a user