From fc4246ea9540b90c6abd079ffc5b25e8cbd8c384 Mon Sep 17 00:00:00 2001 From: Juan Celhay Date: Tue, 28 Jul 2026 22:00:51 -0400 Subject: [PATCH] Add pre- and post- deploy tasks for SQL schema verification and deployment (#3184) --- release/clouddeploy/delivery-pipeline.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/release/clouddeploy/delivery-pipeline.yaml b/release/clouddeploy/delivery-pipeline.yaml index 86fe3b3b5..b899be95d 100644 --- a/release/clouddeploy/delivery-pipeline.yaml +++ b/release/clouddeploy/delivery-pipeline.yaml @@ -14,6 +14,17 @@ serialPipeline: - phaseId: "canary-1" profiles: ["crash-partial-phase-1"] percentage: 10 + predeploy: + tasks: + - type: container + image: gcr.io/google.com/cloudsdktool/google-cloud-cli:stable + env: + TARGET_ID: ${{ target.id }} + command: ["/bin/bash"] + args: + - "-c" + - | + gcloud builds submit --config=release/cloudbuild-schema-verify-${TARGET_ID}.yaml analysis: # 10 minutes. duration: 600s @@ -46,6 +57,15 @@ serialPipeline: - | gcloud artifacts docker tags add $DEPLOYED_IMAGE \ ${BASE_IMAGE}:live-cd-${TARGET_ID} + - type: container + image: gcr.io/google.com/cloudsdktool/google-cloud-cli:stable + env: + TARGET_ID: ${{ target.id }} + command: ["/bin/bash"] + args: + - "-c" + - | + gcloud builds submit --config=release/cloudbuild-schema-deploy-${TARGET_ID}.yaml analysis: # 10 minutes. duration: 600s @@ -60,6 +80,17 @@ serialPipeline: - phaseId: "canary-1" profiles: ["sandbox-partial-phase-1"] percentage: 10 + predeploy: + tasks: + - type: container + image: gcr.io/google.com/cloudsdktool/google-cloud-cli:stable + env: + TARGET_ID: ${{ target.id }} + command: ["/bin/bash"] + args: + - "-c" + - | + gcloud builds submit --config=release/cloudbuild-schema-verify-${TARGET_ID}.yaml analysis: # 10 minutes. duration: 600s @@ -92,6 +123,15 @@ serialPipeline: - | gcloud artifacts docker tags add $DEPLOYED_IMAGE \ ${BASE_IMAGE}:live-cd-${TARGET_ID} + - type: container + image: gcr.io/google.com/cloudsdktool/google-cloud-cli:stable + env: + TARGET_ID: ${{ target.id }} + command: ["/bin/bash"] + args: + - "-c" + - | + gcloud builds submit --config=release/cloudbuild-schema-deploy-${TARGET_ID}.yaml analysis: # 10 minutes. duration: 600s