Skip to content

Commit fd4958d

Browse files
committed
feat(build): add cloudbuild config for gcp trigger
1 parent e7188a5 commit fd4958d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
audience: developers
2+
level: patch
3+
---
4+
Added a `cloudbuild.yaml` file for the Google Cloud Build trigger on the `main` branch.

cloudbuild.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
steps:
2+
- name: gcr.io/cloud-builders/docker
3+
args:
4+
- build
5+
- '--build-arg'
6+
- 'DOCKER_FLOW_VERSION=${_VERSION}'
7+
- '-t'
8+
- '${_IMAGE_NAME}'
9+
- .
10+
timeout: 1500s
11+
images:
12+
- '${_IMAGE_NAME}'
13+
options:
14+
dynamicSubstitutions: true
15+
substitutions:
16+
_IMAGE_NAME: 'gcr.io/taskcluster-dev/${PROJECT_ID}/${BRANCH_NAME}:latest'
17+
_VERSION: >-
18+
{"version":"${BRANCH_NAME}_dev","commit":"${SHORT_SHA}","source":"https://github.com/taskcluster/taskcluster","build":"${BUILD_ID}"}

0 commit comments

Comments
 (0)