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