-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcloudbuild.yaml
44 lines (44 loc) · 1.24 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
---
steps:
- id: 'fetch-cube'
name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/$PROJECT_ID/www-cube:latest']
waitFor: ['-']
- id: 'fetch-presentation'
name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/$PROJECT_ID/www-presentation:latest']
waitFor: ['-']
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '--cache-from'
- 'gcr.io/$PROJECT_ID/www-cube:latest'
- '-t'
- 'gcr.io/$PROJECT_ID/www-cube:$REVISION_ID'
- '-t'
- 'gcr.io/$PROJECT_ID/www-cube:latest'
- '-f'
- 'prod/Dockerfile-cube'
- '.'
waitFor: ['fetch-cube']
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '--cache-from'
- 'gcr.io/$PROJECT_ID/www-presentation:latest'
- '-t'
- 'gcr.io/$PROJECT_ID/www-presentation:$REVISION_ID'
- '-t'
- 'gcr.io/$PROJECT_ID/www-presentation:latest'
- '-f'
- 'prod/Dockerfile-present'
- '.'
waitFor: ['fetch-presentation']
images:
- 'gcr.io/$PROJECT_ID/www-cube:$REVISION_ID'
- 'gcr.io/$PROJECT_ID/www-presentation:$REVISION_ID'
- 'gcr.io/$PROJECT_ID/www-cube:latest'
- 'gcr.io/$PROJECT_ID/www-presentation:latest'
timeout: 1200s
options:
machineType: 'N1_HIGHCPU_8'