Fix Gitea Actions - use exec runner instead of Docker
Some checks failed
Deploy hatch.surf / deploy (push) Has been cancelled
Some checks failed
Deploy hatch.surf / deploy (push) Has been cancelled
- Changed runner config to use exec mode (runs on host) - Updated workflow to use deploy.sh script - Runner now has direct access to Docker daemon Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
91c6ed94f1
commit
d2ec362d74
@ -13,25 +13,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build and Deploy
|
||||||
run: |
|
run: |
|
||||||
docker build -t hatch-web:latest .
|
chmod +x deploy.sh
|
||||||
echo "Docker image built successfully"
|
./deploy.sh
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user