feat: add one-command deploy script (npm run deploy)
CI/CD Pipeline / Build & Validate (push) Failing after 1m24s
CI/CD Pipeline / Build & Push Docker Images (push) Skipped

This commit is contained in:
2026-09-01 11:25:22 +05:30
parent c4010f7bbe
commit efb790da11
2 changed files with 19 additions and 1 deletions
+2 -1
View File
@@ -8,7 +8,8 @@
"build": "vite build",
"preview": "vite preview",
"clean": "rm -rf dist",
"lint": "tsc --noEmit"
"lint": "tsc --noEmit",
"deploy": "bash scripts/deploy.sh"
},
"dependencies": {
"@fal-ai/client": "^1.10.1",
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
echo "🚀 [1/3] Building production Docker images..."
docker compose build
echo "📦 [2/3] Pushing images to Gitea Container Registry..."
docker push git.digifox.live/digifoxkurama/titan-web:latest
docker push git.digifox.live/digifoxkurama/titan-api:latest
echo "🔄 [3/3] Triggering Coolify zero-downtime reload..."
RESPONSE=$(curl -s -X POST \
-H "Authorization: Bearer 8|fPDOJYtoML5NxxGMJdN4OHbCIfyME8vwcvYtlWab7939e30c" \
https://deploy.digifox.live/api/v1/services/lbvulal59jsvjqi4rvfw8i4q/restart)
echo "✅ Deployed! Coolify status: $RESPONSE"
echo "🌐 Live URL: https://titan.houseofwebsites.ai"