Merge pull request #139 from trails-cool/fix/deploy-annotation-env-file

Fix deploy annotation reading token from wrong env file
This commit is contained in:
Ullrich Schäfer 2026-03-29 20:00:07 +02:00 committed by GitHub
commit 7d0ad7fe31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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