ops: add post-deploy verification script and add to CI/CD workflow
All checks were successful
Deploy to Production / Deploy to Server (push) Successful in 1m35s

- scripts/verify-deploy.sh: checks container health, /health endpoint, and Stripe checkout
- .forgejo/workflows/deploy.yml: runs verify-deploy.sh after successful deploy
This commit is contained in:
DocFast Bot 2026-02-17 11:51:36 +00:00
parent f5cea97adf
commit 73fba68320
2 changed files with 43 additions and 0 deletions

View file

@ -85,6 +85,10 @@ jobs:
sleep 5
done
# Run post-deploy verification
echo "🔍 Running post-deploy verification..."
bash scripts/verify-deploy.sh
# Cleanup old rollback images (keep last 5)
echo "🧹 Cleaning up old rollback images..."
docker images --format "table {{.Repository}}:{{.Tag}}" | grep "docfast-docfast:rollback-" | tail -n +6 | awk '{print $1":"$2}' | xargs -r docker rmi || true