Some checks failed
Deploy hatch.surf / deploy (push) Failing after 0s
- Added deploy.sh for manual deployment - Simplified Gitea Actions workflow - Note: Gitea Actions Docker builds have networking issues - Manual deployment via deploy.sh works perfectly Co-Authored-By: Paperclip <noreply@paperclip.ing>
38 lines
897 B
YAML
38 lines
897 B
YAML
name: Deploy hatch.surf
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build Docker image
|
|
run: |
|
|
docker build -t hatch-web:latest .
|
|
echo "Docker image built successfully"
|
|
|
|
- name: Deploy container
|
|
run: |
|
|
docker stop hatch-web 2>/dev/null || true
|
|
docker rm hatch-web 2>/dev/null || true
|
|
docker compose up -d
|
|
echo "Container deployed"
|
|
|
|
- name: Verify deployment
|
|
run: |
|
|
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
|