From 87be96db6709a9dcd52355ac4c629bec505f8c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sun, 29 Mar 2026 20:44:39 +0200 Subject: [PATCH] Switch deploy annotations from BusyBox wget to curl BusyBox wget in the Grafana Alpine container doesn't support --post-data/--header. Grafana's image includes curl. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/cd-apps.yml | 8 ++++---- .github/workflows/cd-brouter.yml | 8 ++++---- .github/workflows/cd-infra.yml | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cd-apps.yml b/.github/workflows/cd-apps.yml index 9fb0fa6..24ab70f 100644 --- a/.github/workflows/cd-apps.yml +++ b/.github/workflows/cd-apps.yml @@ -114,9 +114,9 @@ jobs: # Annotate deploy in Grafana 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" \ - --header="Content-Type: application/json" \ - --post-data='{"text":"Deploy '${{ github.sha }}'","tags":["deploy","apps"]}' \ + docker compose exec -T grafana curl -sf -X POST \ + -H "Authorization: Bearer $GRAFANA_TOKEN" \ + -H "Content-Type: application/json" \ + -d '{"text":"Deploy ${{ github.sha }}","tags":["deploy","apps"]}' \ http://localhost:3000/api/annotations || true fi diff --git a/.github/workflows/cd-brouter.yml b/.github/workflows/cd-brouter.yml index 3ef953d..3efef07 100644 --- a/.github/workflows/cd-brouter.yml +++ b/.github/workflows/cd-brouter.yml @@ -68,9 +68,9 @@ jobs: # Annotate deploy in Grafana 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" \ - --header="Content-Type: application/json" \ - --post-data='{"text":"Deploy brouter ${{ github.sha }}","tags":["deploy","brouter"]}' \ + docker compose exec -T grafana curl -sf -X POST \ + -H "Authorization: Bearer $GRAFANA_TOKEN" \ + -H "Content-Type: application/json" \ + -d '{"text":"Deploy brouter ${{ github.sha }}","tags":["deploy","brouter"]}' \ http://localhost:3000/api/annotations || true fi diff --git a/.github/workflows/cd-infra.yml b/.github/workflows/cd-infra.yml index eb6450a..fd295f0 100644 --- a/.github/workflows/cd-infra.yml +++ b/.github/workflows/cd-infra.yml @@ -89,9 +89,9 @@ jobs: # Annotate deploy in Grafana GRAFANA_TOKEN=$(grep GRAFANA_SERVICE_TOKEN .env | cut -d= -f2-) if [ -n "$GRAFANA_TOKEN" ]; then - docker compose exec -T grafana wget -q -O /dev/null \ - --header="Authorization: Bearer $GRAFANA_TOKEN" \ - --header="Content-Type: application/json" \ - --post-data='{"text":"Deploy infra ${{ github.sha }}","tags":["deploy","infra"]}' \ + docker compose exec -T grafana curl -sf -X POST \ + -H "Authorization: Bearer $GRAFANA_TOKEN" \ + -H "Content-Type: application/json" \ + -d '{"text":"Deploy infra ${{ github.sha }}","tags":["deploy","infra"]}' \ http://localhost:3000/api/annotations || true fi