-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
executable file
·117 lines (105 loc) · 3.01 KB
/
cloudbuild.yaml
File metadata and controls
executable file
·117 lines (105 loc) · 3.01 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
timeout: '3600s'
steps:
- name: 'gcr.io/cloud-builders/docker'
id: 'amd64'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/camera-http:amd64-$SHORT_SHA'
- '-f'
- './amd64.Dockerfile'
- '.'
- name: 'gcr.io/cloud-builders/docker'
id: 'arm32v7'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/camera-http:arm32v7-$SHORT_SHA'
- '-f'
- './arm32v7.Dockerfile'
- '.'
- name: 'gcr.io/cloud-builders/docker'
id: 'arm64v8'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/camera-http:arm64v8-$SHORT_SHA'
- '-f'
- './arm64v8.Dockerfile'
- '.'
- name: 'gcr.io/cloud-builders/docker'
id: 'push-amd64'
args:
- 'push'
- 'gcr.io/$PROJECT_ID/camera-http:amd64-$SHORT_SHA'
waitFor: ['amd64']
- name: 'gcr.io/cloud-builders/docker'
id: 'push-arm32v7'
args:
- 'push'
- 'gcr.io/$PROJECT_ID/camera-http:arm32v7-$SHORT_SHA'
waitFor: ['arm32v7']
- name: 'gcr.io/cloud-builders/docker'
id: 'push-arm64v8'
args:
- 'push'
- 'gcr.io/$PROJECT_ID/camera-http:arm64v8-$SHORT_SHA'
waitFor: ['arm64v8']
- name: 'gcr.io/cloud-builders/docker'
id: 'manifest'
env:
- 'DOCKER_CLI_EXPERIMENTAL=enabled'
args:
- 'manifest'
- 'create'
- 'gcr.io/$PROJECT_ID/camera-http:latest-$BRANCH_NAME'
- 'gcr.io/$PROJECT_ID/camera-http:amd64-$SHORT_SHA'
- 'gcr.io/$PROJECT_ID/camera-http:arm32v7-$SHORT_SHA'
- 'gcr.io/$PROJECT_ID/camera-http:arm64v8-$SHORT_SHA'
waitFor: ['push-amd64', 'push-arm32v7', 'push-arm64v8']
- name: 'gcr.io/cloud-builders/docker'
id: 'annotate-manifest-amd64'
env:
- 'DOCKER_CLI_EXPERIMENTAL=enabled'
args:
- 'manifest'
- 'annotate'
- 'gcr.io/$PROJECT_ID/camera-http:latest-$BRANCH_NAME'
- 'gcr.io/$PROJECT_ID/camera-http:amd64-$SHORT_SHA'
- '--os=linux'
waitFor: ['manifest']
- name: 'gcr.io/cloud-builders/docker'
id: 'annotate-manifest-arm32v7'
env:
- 'DOCKER_CLI_EXPERIMENTAL=enabled'
args:
- 'manifest'
- 'annotate'
- 'gcr.io/$PROJECT_ID/camera-http:latest-$BRANCH_NAME'
- 'gcr.io/$PROJECT_ID/camera-http:arm32v7-$SHORT_SHA'
- '--os=linux'
- '--arch=arm'
- '--variant=v7'
waitFor: ['manifest']
- name: 'gcr.io/cloud-builders/docker'
id: 'annotate-manifest-arm64v8'
env:
- 'DOCKER_CLI_EXPERIMENTAL=enabled'
args:
- 'manifest'
- 'annotate'
- 'gcr.io/$PROJECT_ID/camera-http:latest-$BRANCH_NAME'
- 'gcr.io/$PROJECT_ID/camera-http:arm64v8-$SHORT_SHA'
- '--os=linux'
- '--arch=arm64'
- '--variant=v8'
waitFor: ['manifest']
- name: 'gcr.io/cloud-builders/docker'
id: 'push-manifest'
env:
- 'DOCKER_CLI_EXPERIMENTAL=enabled'
args:
- 'manifest'
- 'push'
- 'gcr.io/$PROJECT_ID/camera-http:latest-$BRANCH_NAME'
waitFor: ['annotate-manifest-amd64', 'annotate-manifest-arm32v7', 'annotate-manifest-arm64v8']