From e814f406b2b72a1d323140841359c6d9120d09a4 Mon Sep 17 00:00:00 2001 From: Chris Christiansen Date: Sun, 24 May 2026 02:05:49 +0000 Subject: [PATCH] fix: rename WEBHOOK_URL to WH_URL to avoid Cloud Build substitution parse error --- cloudbuild.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 1e2cdfb..6cf54da 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -62,12 +62,12 @@ steps: args: - '-c' - | - WEBHOOK_URL=$(gcloud secrets versions access latest \ + WH_URL=$(gcloud secrets versions access latest \ --secret=webhook-url \ --project=${PROJECT_ID} 2>/dev/null || echo "") - if [[ -n "$WEBHOOK_URL" ]]; then + if [[ -n "$WH_URL" ]]; then MSG="✅ *OSVauco Deploy fullført*\nCommit: \`$COMMIT_SHA\`\nService: \`${_CLOUD_RUN_SERVICE}\`\nRegion: \`${_REGION}\`" - curl -s -X POST "$WEBHOOK_URL" \ + curl -s -X POST "$WH_URL" \ -H 'Content-Type: application/json' \ -d "{\"text\": \"$MSG\"}" || true echo "✓ Deploy-notifikasjon sendt"