fix(ci): correct syntax error in cloudbuild.yaml notify step
This commit is contained in:
parent
6426c67691
commit
538efdc516
|
|
@ -129,14 +129,10 @@ HTTP_STATUS:%{http_code}"
|
|||
--secret=webhook-url
|
||||
--project=${PROJECT_ID} 2>/dev/null || echo "")
|
||||
if [[ -n "$$WH_URL" ]]; then
|
||||
NOTIFY_MSG="✅ *OSVauco Deploy fullført*
|
||||
Commit: `$COMMIT_SHA`
|
||||
Service: `${_CLOUD_RUN_SERVICE}`
|
||||
Region: `${_REGION}`
|
||||
Smoke test: ✅"
|
||||
curl -s -X POST "$$WH_URL"
|
||||
-H 'Content-Type: application/json'
|
||||
-d "{"text": "$$NOTIFY_MSG"}" || true
|
||||
NOTIFY_MSG="✅ OSVauco Deploy fullført. Commit: $COMMIT_SHA, Service: ${_CLOUD_RUN_SERVICE}, Region: ${_REGION}"
|
||||
curl -s -X POST "$$WH_URL" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d "{\"text\": \"$$NOTIFY_MSG\"}" || true
|
||||
echo "✓ Deploy-notifikasjon sendt"
|
||||
else
|
||||
echo "⚠️ Ingen webhook-url i Secret Manager — hopper over varsling"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user