Skip to content

Commit

Permalink
Tweak CDC stable release trigger config (#4750)
Browse files Browse the repository at this point in the history
- Ensure the whole trigger fails if getting the commit label fails
- Fix comments
  • Loading branch information
hqpho authored Nov 21, 2024
1 parent 5d3d39d commit 37de9d9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build/ci/cloudbuild.push_cdc_stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
# Assumes the stable branch is already checked out, which it should be
# if this is triggered on push to branch for the stable branch.

################################################################################

# NOTE: Logs-based metrics for this build are dependent on step numbers.
# For this reason, please either add new steps at the end of the file OR
# update ALL metrics when adding/removing steps.

################################################################################

steps:
# Step 0: Initialize submods
- id: init-submods
Expand All @@ -36,10 +44,11 @@ steps:
- -c
- |
set -e
set -o pipefail
./scripts/get_commits_label.sh | tail -1 >"$_IMAGE_LABEL_PATH"
waitFor: ["init-submods"]

# Step 1: Services container
# Step 2: Services container
- id: build-and-tag-stable-services
name: gcr.io/datcom-ci/deploy-tool
entrypoint: bash
Expand All @@ -51,7 +60,7 @@ steps:
./scripts/build_cdc_services_and_tag_stable.sh $image_label
waitFor: ["get-label"]

# Step 2: Data management container
# Step 3: Data management container
- id: build-and-tag-stable-data
name: gcr.io/datcom-ci/deploy-tool
entrypoint: bash
Expand Down

0 comments on commit 37de9d9

Please sign in to comment.