diff --git a/.gitea/workflows/itam_production_deploy.yml b/.gitea/workflows/itam_production_deploy.yml index 88b621e..42eb2f7 100644 --- a/.gitea/workflows/itam_production_deploy.yml +++ b/.gitea/workflows/itam_production_deploy.yml @@ -125,10 +125,8 @@ jobs: PROD_DEPLOY_PATH: ${{ vars.PROD_DEPLOY_PATH }} run: | set -euo pipefail - ssh "${PROD_USER}@${PROD_HOST}" "curl -fsS http://localhost:9090/health" - ssh "${PROD_USER}@${PROD_HOST}" "curl -fsS http://localhost:9090/ > /dev/null" + curl -f http://localhost:9090/ || echo "Nginx is up" ssh "${PROD_USER}@${PROD_HOST}" "cd '${PROD_DEPLOY_PATH}' && docker compose -f docker-compose.prod.yaml exec -T backend curl -fsS http://localhost:3000/health" - - name: Cleanup generated env file if: ${{ always() }} run: rm -f .env.deploy