This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cloudbuild.yaml
70 lines (70 loc) · 2.64 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/$PROJECT_ID/kube_native:builder']
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/$PROJECT_ID/kube_native:deps']
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/$PROJECT_ID/kube_native:frontend']
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/$PROJECT_ID/kube_native:releaser']
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/$PROJECT_ID/kube_native:latest']
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/kube_native:builder'
- '--target=builder'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:builder'
- '.'
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/kube_native:deps'
- '--target=deps'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:builder'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:deps'
- '.'
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/kube_native:frontend'
- '--target=frontend'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:builder'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:deps'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:frontend'
- '.'
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/kube_native:releaser'
- '--target=releaser'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:builder'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:deps'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:frontend'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:releaser'
- '.'
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/kube_native:$COMMIT_SHA'
- '--target=runner'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:builder'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:deps'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:frontend'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:releaser'
- '--cache-from=gcr.io/$PROJECT_ID/kube_native:latest'
- '.'
- name: 'gcr.io/cloud-builders/docker'
args: ['tag', 'gcr.io/$PROJECT_ID/kube_native:$COMMIT_SHA', 'gcr.io/$PROJECT_ID/kube_native:latest']
images:
- 'gcr.io/$PROJECT_ID/kube_native:builder'
- 'gcr.io/$PROJECT_ID/kube_native:deps'
- 'gcr.io/$PROJECT_ID/kube_native:frontend'
- 'gcr.io/$PROJECT_ID/kube_native:releaser'
- 'gcr.io/$PROJECT_ID/kube_native:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/kube_native:latest'