Fix deploy annotation reading token from wrong env file
GRAFANA_SERVICE_TOKEN is in secrets.infra.env, which the infra workflow merges into .env on the server. The apps workflow was reading from app.env (which only has app secrets). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8440c2de8f
commit
c2b9032686
1 changed files with 1 additions and 1 deletions
2
.github/workflows/cd-apps.yml
vendored
2
.github/workflows/cd-apps.yml
vendored
|
|
@ -112,7 +112,7 @@ jobs:
|
|||
docker compose ps
|
||||
|
||||
# Annotate deploy in Grafana
|
||||
GRAFANA_TOKEN=$(grep GRAFANA_SERVICE_TOKEN app.env | cut -d= -f2-)
|
||||
GRAFANA_TOKEN=$(grep GRAFANA_SERVICE_TOKEN .env | cut -d= -f2- 2>/dev/null)
|
||||
if [ -n "$GRAFANA_TOKEN" ]; then
|
||||
docker compose exec -T grafana wget -q -O /dev/null \
|
||||
--header="Authorization: Bearer $GRAFANA_TOKEN" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue