From 87ec01fdd5f7d94966639473abf833861eb539a5 Mon Sep 17 00:00:00 2001 From: Antigravity Date: Thu, 21 May 2026 20:11:04 +0000 Subject: [PATCH] fix(ci): add needs clause to deploy job and force recreate prometheus on deploy --- .gitea/workflows/ci.yaml | 2 ++ scripts/deploy-prod.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index efbd548..5dab33a 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -89,9 +89,11 @@ jobs: deploy: name: Deploy production (on server) + needs: ci if: github.ref == 'refs/heads/main' && github.event_name == 'push' runs-on: docker-host steps: + - name: Install Node.js for Gitea Actions run: | if command -v apk >/dev/null 2>&1; then diff --git a/scripts/deploy-prod.sh b/scripts/deploy-prod.sh index 4d9c55e..5e0df19 100755 --- a/scripts/deploy-prod.sh +++ b/scripts/deploy-prod.sh @@ -81,8 +81,8 @@ for i in $(seq 1 24); do if [ "$ACTUAL" = "$GIT_COMMIT" ]; then echo "OK build-info commit=$ACTUAL" if docker ps --format '{{.Names}}' | grep -q "^memento-grafana$"; then - echo "=== Recreating Grafana to load new provisioning and dashboards ===" - docker compose -f monitoring/docker-compose.monitoring.yml up -d --force-recreate grafana + echo "=== Recreating Grafana and Prometheus to load new configurations ===" + docker compose -f monitoring/docker-compose.monitoring.yml up -d --force-recreate grafana prometheus fi docker compose ps exit 0