From 032cf19f2433a67fd00d5a7b2f093af624b000d1 Mon Sep 17 00:00:00 2001 From: Chris Christiansen Date: Sun, 24 May 2026 02:11:15 +0000 Subject: [PATCH] fix: use _WH_URL with underscore prefix - valid Cloud Build substitution key --- cloudbuild.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 9d4f38c..ab8c443 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -62,12 +62,12 @@ steps: args: - '-c' - | - WH_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 "$WH_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 "$WH_URL" \ + curl -s -X POST "$_WH_URL" \ -H 'Content-Type: application/json' \ -d "{\"text\": \"$MSG\"}" || true echo "✓ Deploy-notifikasjon sendt"