From 719589695882694fbee4a40a5511071fec2b3207 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Wed, 24 Jun 2026 10:41:14 +0200 Subject: [PATCH] Fix Gitea Actions - use exec runner instead of Docker - 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 --- .gitea/workflows/deploy.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8b639ec3..56a24851 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -13,25 +13,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Build Docker image + - name: Build and Deploy 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 + chmod +x deploy.sh + ./deploy.sh