From f3e15331cdf1be4f58cf925fe6642a7c5c261d6d Mon Sep 17 00:00:00 2001 From: Chris Christiansen Date: Wed, 10 Jun 2026 14:48:22 +0000 Subject: [PATCH] fix(ci): put curl commands on single line in smoke-test --- cloudbuild.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index f07a261..e34f464 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -81,9 +81,7 @@ steps: sleep 10 continue fi - STATUS=$$(curl -s -o /dev/null -w "%{http_code}" - -H "Authorization: Bearer $$TOKEN" - "$$BASE_URL/health") + STATUS=$$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer $$TOKEN" "$$BASE_URL/health") echo " /health forsøk $$i: HTTP $$STATUS" [ "$$STATUS" = "200" ] && break sleep 10 @@ -98,11 +96,7 @@ steps: TOKEN=$$(gcloud auth print-identity-token --audiences="$$BASE_URL") - RESPONSE=$$(curl -s -w "\nHTTP_STATUS:%{http_code}" \ - -H "Authorization: Bearer $$TOKEN" \ - -H "Content-Type: application/json" \ - -d '{"user_id": "ci", "session_id": "smoke-$$BUILD_ID", "message": "ping"}' \ - "$$BASE_URL/run") + RESPONSE=$$(curl -s -w "\nHTTP_STATUS:%{http_code}" -H "Authorization: Bearer $$TOKEN" -H "Content-Type: application/json" -d '{"user_id": "ci", "session_id": "smoke-$$BUILD_ID", "message": "ping"}' "$$BASE_URL/run") "$$BASE_URL/run") HTTP_STATUS=$$(echo "$$RESPONSE" | grep "HTTP_STATUS:" | cut -d: -f2)