From b01624b31ae980988c57c83c048952662996f259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Fri, 27 Mar 2026 14:53:54 +0100 Subject: [PATCH] Sync Grafana admin password on each deploy GF_SECURITY_ADMIN_PASSWORD only works on first boot. Reset the admin password via grafana-cli after each deploy to stay in sync with secrets. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/cd.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 89b8a91..987f602 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -123,6 +123,9 @@ jobs: # Clean up old images to prevent disk full docker image prune -af - # Verify services are running + # Sync Grafana admin credentials (env vars only work on first boot) sleep 10 + docker compose exec -T grafana grafana cli admin reset-admin-password "$GRAFANA_PASSWORD" || true + + # Verify services are running docker compose ps