From d84ea0d5c3873629afd8f2b8965053219b5d601d Mon Sep 17 00:00:00 2001 From: Chris Christiansen Date: Sun, 24 May 2026 02:02:36 +0000 Subject: [PATCH] fix: unquote shell vars in cloudbuild.yaml to avoid Cloud Build substitution parse error --- cloudbuild.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index c62789c..1e2cdfb 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -65,9 +65,9 @@ steps: WEBHOOK_URL=$(gcloud secrets versions access latest \ --secret=webhook-url \ --project=${PROJECT_ID} 2>/dev/null || echo "") - if [[ -n "${WEBHOOK_URL}" ]]; then + if [[ -n "$WEBHOOK_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 "$WEBHOOK_URL" \ -H 'Content-Type: application/json' \ -d "{\"text\": \"$MSG\"}" || true echo "✓ Deploy-notifikasjon sendt"