From c98e47a05064043dca92a03d8e9d38c20e51de54 Mon Sep 17 00:00:00 2001 From: Kyle Pope Date: Wed, 18 Mar 2026 11:35:05 +0800 Subject: [PATCH] Fix CI/CD deploy: use workspace compose file instead of /opt/umbra The job container doesn't have /opt/umbra. Use the checked-out repo's docker-compose.yaml (already in the working directory). Combined pull + deploy into one step. Increased health check wait. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/deploy.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 193a4e8..cf6cd26 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -34,20 +34,15 @@ jobs: docker push ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:main-latest docker push ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:${{ github.sha }} - - name: Pull new images - run: | - cd /opt/umbra - docker compose pull backend frontend - - name: Deploy run: | - cd /opt/umbra - docker compose up -d + docker compose pull backend frontend + docker compose up -d --remove-orphans - name: Health check run: | echo "Waiting for services to start..." - sleep 10 + sleep 15 curl -f http://localhost/health || exit 1 - name: Prune old images