Skip to content

Commit c364f19

Browse files
authored
ci(gcb): add useful tags to all builds (#6229)
This will let us filter on builds based on whether they're CI, PR, or manually triggered builds. I'm also tagged based on distro and build name, which may be useful too.
1 parent e5f90ce commit c364f19

35 files changed

+40
-0
lines changed

ci/cloudbuild/cloudbuild.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ substitutions:
3535
_CACHE_BUCKET: '${PROJECT_ID}_cloudbuild'
3636
_CACHE_TYPE: '${_PR_NUMBER:-main}'
3737
_IMAGE: 'cloudbuild/${_DISTRO}'
38+
_TRIGGER_TYPE: 'manual'
3839

40+
tags: [ '${_TRIGGER_TYPE}', '${_BUILD_NAME}', '${_DISTRO}' ]
3941
timeout: 3600s
4042

4143
steps:

ci/cloudbuild/triggers/asan-ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ name: asan-ci
88
substitutions:
99
_BUILD_NAME: asan
1010
_DISTRO: fedora
11+
_TRIGGER_TYPE: ci
1112
tags:
1213
- ci

ci/cloudbuild/triggers/asan-pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ name: asan-pr
99
substitutions:
1010
_BUILD_NAME: asan
1111
_DISTRO: fedora
12+
_TRIGGER_TYPE: pr
1213
tags:
1314
- pr

ci/cloudbuild/triggers/bazel-clang-ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ name: bazel-clang-ci
88
substitutions:
99
_BUILD_NAME: bazel-clang
1010
_DISTRO: fedora
11+
_TRIGGER_TYPE: ci
12+
tags:
13+
- ci

ci/cloudbuild/triggers/bazel-clang-pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ name: bazel-clang-pr
99
substitutions:
1010
_BUILD_NAME: bazel-clang
1111
_DISTRO: fedora
12+
_TRIGGER_TYPE: pr
1213
tags:
1314
- pr

ci/cloudbuild/triggers/bazel-gcc-ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ name: bazel-gcc-ci
88
substitutions:
99
_BUILD_NAME: bazel-gcc
1010
_DISTRO: fedora
11+
_TRIGGER_TYPE: ci
12+
tags:
13+
- ci

ci/cloudbuild/triggers/bazel-gcc-pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ name: bazel-gcc-pr
99
substitutions:
1010
_BUILD_NAME: bazel-gcc
1111
_DISTRO: fedora
12+
_TRIGGER_TYPE: pr
1213
tags:
1314
- pr

ci/cloudbuild/triggers/checkers-ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ name: checkers-ci
88
substitutions:
99
_BUILD_NAME: checkers
1010
_DISTRO: fedora
11+
_TRIGGER_TYPE: ci
1112
tags:
1213
- ci

ci/cloudbuild/triggers/checkers-pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ name: checkers-pr
99
substitutions:
1010
_BUILD_NAME: checkers
1111
_DISTRO: fedora
12+
_TRIGGER_TYPE: pr
1213
tags:
1314
- pr

ci/cloudbuild/triggers/clang-38-ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ name: clang-38-ci
88
substitutions:
99
_BUILD_NAME: clang-38
1010
_DISTRO: ubuntu-xenial
11+
_TRIGGER_TYPE: ci
1112
tags:
1213
- ci

0 commit comments

Comments
 (0)