Refactors the Cloud Build pipelines to a modular and branch-aware setup, resolving redundancy and adding core features. - `cloudbuild.opax-mcp.yaml`: A new, single pipeline for the OPAX-MCP service. It supports building from any branch, tags images with both branch name and commit SHA, and includes a placeholder for Tyr policy validation. Deployment to Cloud Run is conditional, running only for `main` and `opax-*` branches. - `cloudbuild.base.yaml`: A new architecture file that explains the CI/CD structure. It clarifies that `cloudbuild.opax-mcp.yaml` is the single source of truth. - `cloudbuild.yaml`, `cloudbuild.mcp.yaml`: These files are now deprecated. Their contents have been replaced with a notice pointing to the new pipeline to avoid confusion.
23 lines
898 B
YAML
23 lines
898 B
YAML
# ARCHITECTURE NOTE: CI/CD PIPELINE REFACTOR
|
|
#
|
|
# This file is a placeholder to explain the new Cloud Build structure.
|
|
# Do not add build steps here.
|
|
#
|
|
# 1. SINGLE SOURCE OF TRUTH:
|
|
# The definitive pipeline for the OPAX-MCP service is now defined in:
|
|
# /cloudbuild.opax-mcp.yaml
|
|
#
|
|
# 2. REUSABILITY:
|
|
# - To promote clarity and reuse within the pipeline, `cloudbuild.opax-mcp.yaml`
|
|
# uses YAML anchors (&) and aliases (*) for common steps like policy checks,
|
|
# building, and deploying.
|
|
#
|
|
# 3. BRANCH-AWARE LOGIC:
|
|
# - The pipeline is fully branch-aware. It tags images with both commit SHA and branch name.
|
|
# - Deployment to Cloud Run is conditional and only runs for specific branches
|
|
# (e.g., `main`, `opax-*`).
|
|
#
|
|
# 4. DEPRECATED FILES:
|
|
# - `cloudbuild.yaml` and `cloudbuild.mcp.yaml` are deprecated. They have been
|
|
# emptied and point to the new pipeline file.
|