-
Notifications
You must be signed in to change notification settings - Fork 2
/
cloudbuild.yaml
47 lines (42 loc) · 1.6 KB
/
cloudbuild.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
# Timeout for complete build. Default is 10m.
timeout: 1800s
options:
env:
- PROJECT_ID=$PROJECT_ID
- WORKSPACE_LINK=/go/src/github.com/m-lab/etl-schema
# Environment variables used by create_dataset_views.sh.
- TAG_NAME=$TAG_NAME
- COMMIT_SHA=$COMMIT_SHA
############################################################################
steps:
- name: gcr.io/$PROJECT_ID/golang-cbif:1.20
env:
- CGO_ENABLED=0
args:
- go install -v ./cmd/bq_create_view
- cp /go/bin/bq_create_view ./views
# Deployments to sandbox, staging, and oti.
- name: gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.1
env:
# Use cbif condition: only run these steps in one of these projects.
- PROJECT_IN=mlab-sandbox,mlab-staging,mlab-oti
args:
- /workspace/transform/create_static_tables.sh $PROJECT_ID
- /workspace/functions/create_table_functions.sh $PROJECT_ID
- /workspace/views/create_dataset_views.sh self $PROJECT_ID $PROJECT_ID
# Deployments to measurement-lab.
- name: gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.1
env:
# Use cbif condition: only run these steps in one of these projects.
- PROJECT_IN=mlab-oti
args:
- /workspace/views/create_dataset_views.sh self $PROJECT_ID measurement-lab
# Deployments for v2 autoloader pipeline.
# TODO(soltesz): this remains manual and should be automatic. Remove this
# deployment once the autoloader supports automated creation of configured
# joins and unified views.
- name: gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.1
env:
- PROJECT_IN=mlab-sandbox,mlab-staging,mlab-autojoin
args:
- /workspace/views/create_autojoin_dataset_views.sh self $PROJECT_ID