forked from tensorflow/tfjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yml
34 lines (31 loc) · 886 Bytes
/
cloudbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
steps:
# Install top-level deps.
- name: 'gcr.io/learnjs-174218/release'
entrypoint: 'yarn'
id: 'yarn'
args: ['install']
# Generate cloudbuild_generated.yml,
# which builds and tests all affected packages.
- name: 'gcr.io/learnjs-174218/release'
entrypoint: 'yarn'
id: 'generate-cloudbuild-for-packages'
args: ['generate-cloudbuild-for-packages']
waitFor: ['yarn']
env:
- 'COMMIT_SHA=$COMMIT_SHA'
- 'BRANCH_NAME=$BRANCH_NAME'
- 'BASE_BRANCH=$_BASE_BRANCH'
- 'NIGHTLY=$_NIGHTLY'
# Run the generated cloudbuild file
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'run-cloudbuild'
args: ['./scripts/run-build.sh']
waitFor: ['generate-cloudbuild-for-packages']
env: ['NIGHTLY=$_NIGHTLY']
# General settings.
timeout: 3600s
logsBucket: 'gs://tfjs-build-logs'
options:
logStreamingOption: 'STREAM_ON'
substitution_option: 'ALLOW_LOOSE'