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:
parent
65f30b952a
commit
b01624b31a
1 changed files with 4 additions and 1 deletions
5
.github/workflows/cd.yml
vendored
5
.github/workflows/cd.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue