hatch-surf/deploy.sh
Chris Anderson 87614376f9 Disable Gitea Actions, use manual deploy script
- Gitea Actions runner has Docker networking issues
- Created deploy.sh for manual deployment
- Created webhook.sh for future webhook-based deployment
- Deployment is now: git pull && ./deploy.sh

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-24 10:42:28 +02:00

27 lines
575 B
Bash
Executable File

#!/bin/bash
# Deploy hatch.surf - triggered by Gitea webhook or manually
set -e
echo "=== Deploying hatch.surf ==="
cd /home/nara/apps/web
# Pull latest changes
git pull origin main
# Build and deploy
docker build -t hatch-web:latest .
docker stop hatch-web 2>/dev/null || true
docker rm hatch-web 2>/dev/null || true
docker compose up -d
# Verify
sleep 5
if curl -s -o /dev/null -w "%{http_code}" http://localhost:8080 | grep -q "200"; then
echo "✅ hatch.surf deployed successfully!"
else
echo "❌ Deployment failed!"
docker logs hatch-web
exit 1
fi