[WIP] feat: rewrite cloudbuild.yaml as full CI/CD pipeline matching deploy.sh#40
[WIP] feat: rewrite cloudbuild.yaml as full CI/CD pipeline matching deploy.sh#40luis5tb wants to merge 4 commits intoRHEcosystemAppEng:mainfrom
Conversation
The old cloudbuild.yaml was outdated and unused — it only handled the agent image with inline CLI flags. This rewrite creates a complete 10-step pipeline that mirrors deploy.sh: builds both service images, copies the MCP image from Quay.io to GCR, deploys both services using the YAML configs with sed substitution, configures Pub/Sub, and sets service URLs. Also documents the Cloud Build workflow in the Cloud Run and main READMEs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
do we want to test it somehow? |
The images section declares build artifacts, but when _BUILD_FROM_SOURCE=false, images are pulled/tagged/pushed in copy steps, not built by Cloud Build. This could cause the post-build push to fail or overwrite with stale layers.
Matches deploy.sh validation: when using a fully-qualified topic
path (projects/...), the subscription name must be explicitly set
since the default ${topic}-sub would produce an invalid name.
Also adds set -eo pipefail for safer bash execution.
…henticated Both steps modify Cloud Run services concurrently (IAM binding vs env var update). Add allow-unauthenticated to the waitFor list of update-agent-urls to serialize these operations.
SummaryRewrites the existing minimal Critical Issues
Important Issues
Suggestions
What's Done Well
Verdict: Request ChangesThe missing Review-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
The old cloudbuild.yaml was outdated and unused — it only handled the agent image with inline CLI flags. This rewrite creates a complete 10-step pipeline that mirrors deploy.sh: builds both service images, copies the MCP image from Quay.io to GCR, deploys both services using the YAML configs with sed substitution, configures Pub/Sub, and sets service URLs. Also documents the Cloud Build workflow in the Cloud Run and main READMEs.