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) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-03-27 14:53:54 +01:00
parent 65f30b952a
commit b01624b31a
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -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