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
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:
parent
fac953fcea
commit
c98e47a050
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user