diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0a7a245f..92c2bbbb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -261,28 +261,20 @@ jobs: - name: Checkout code uses: actions/checkout@v5 - - name: Reset staging service - run: | - docker compose -f "$STAGING_COMPOSE_FILE" -p corescope-staging down --remove-orphans 2>/dev/null || true - # Legacy fallback from pre-rename/pre-split deployments - docker rm -f meshcore-staging meshcore-staging-go corescope-staging 2>/dev/null || true - sleep 2 - - - name: Start staging on port 82 - run: | - docker compose -f "$STAGING_COMPOSE_FILE" -p corescope-staging up -d "$STAGING_SERVICE" + - name: Deploy staging + run: ./manage.sh restart staging - name: Healthcheck staging container run: | for i in $(seq 1 120); do - HEALTH=$(docker inspect "$STAGING_CONTAINER" --format '{{.State.Health.Status}}' 2>/dev/null || echo "starting") + HEALTH=$(docker inspect corescope-staging-go --format '{{.State.Health.Status}}' 2>/dev/null || echo "starting") if [ "$HEALTH" = "healthy" ]; then echo "Staging healthy after ${i}s" break fi if [ "$i" -eq 120 ]; then echo "Staging failed health check after 120s" - docker logs "$STAGING_CONTAINER" --tail 50 + docker logs corescope-staging-go --tail 50 exit 1 fi sleep 1