Fix CI/CD deploy: use workspace compose file instead of /opt/umbra
Some checks failed
Build and Deploy UMBRA / build-and-deploy (push) Failing after 13s

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) <noreply@anthropic.com>
This commit is contained in:
Kyle 2026-03-18 11:35:05 +08:00
parent fac953fcea
commit c98e47a050

View File

@ -34,20 +34,15 @@ jobs:
docker push ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:main-latest docker push ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:main-latest
docker push ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:${{ github.sha }} 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 - name: Deploy
run: | run: |
cd /opt/umbra docker compose pull backend frontend
docker compose up -d docker compose up -d --remove-orphans
- name: Health check - name: Health check
run: | run: |
echo "Waiting for services to start..." echo "Waiting for services to start..."
sleep 10 sleep 15
curl -f http://localhost/health || exit 1 curl -f http://localhost/health || exit 1
- name: Prune old images - name: Prune old images