fix(opax-mcp): use canonical service URL for agent and smoke test
Some checks are pending
Check Python Version Consistency / Check Python Version (push) Waiting to run
Some checks are pending
Check Python Version Consistency / Check Python Version (push) Waiting to run
This commit is contained in:
parent
4032376927
commit
2c035c8553
|
|
@ -70,7 +70,7 @@ steps:
|
||||||
- '-c'
|
- '-c'
|
||||||
- |
|
- |
|
||||||
echo "=== MCP Smoke Test ==="
|
echo "=== MCP Smoke Test ==="
|
||||||
SVC_URL="https://opax-mcp-zjbqp3prqq-uc.a.run.app"
|
SVC_URL="https://opax-mcp-357036551735.us-central1.run.app"
|
||||||
echo "Service URL: $$SVC_URL"
|
echo "Service URL: $$SVC_URL"
|
||||||
TOKEN=$$(curl -s -H "Metadata-Flavor: Google" \
|
TOKEN=$$(curl -s -H "Metadata-Flavor: Google" \
|
||||||
"http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=$$SVC_URL&format=full")
|
"http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=$$SVC_URL&format=full")
|
||||||
|
|
@ -91,7 +91,7 @@ steps:
|
||||||
WH_URL=$$(gcloud secrets versions access latest \
|
WH_URL=$$(gcloud secrets versions access latest \
|
||||||
--secret=webhook-url --project=${PROJECT_ID} 2>/dev/null || echo "")
|
--secret=webhook-url --project=${PROJECT_ID} 2>/dev/null || echo "")
|
||||||
if [[ -n "$$WH_URL" ]]; then
|
if [[ -n "$$WH_URL" ]]; then
|
||||||
MSG="✅ opax-mcp deploy fullført\nCommit: $COMMIT_SHA\nService: opax-mcp (${_REGION})\nhttps://opax-mcp-zjbqp3prqq-uc.a.run.app"
|
MSG="✅ opax-mcp deploy fullført\nCommit: $COMMIT_SHA\nService: opax-mcp (${_REGION})\nhttps://opax-mcp-357036551735.us-central1.run.app"
|
||||||
curl -s -X POST "$$WH_URL" \
|
curl -s -X POST "$$WH_URL" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d "{\"text\": \"$$MSG\"}" || true
|
-d "{\"text\": \"$$MSG\"}" || true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user