-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.json
44 lines (44 loc) · 1.19 KB
/
cloudbuild.json
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": [
{
"name": "gcr.io/kaniko-project/executor:latest",
"id": "daemon",
"args": [
"--destination=gcr.io/$PROJECT_ID/fakestock:$SHORT_SHA",
"--build-arg=SHORT_SHA=$SHORT_SHA",
"--cache=true",
"--cache-ttl=5h"
]
},
{
"name": "gcr.io/cloud-builders/gcloud",
"id": "daemon-retag",
"waitFor": [
"daemon"
],
"args": [
"--quiet",
"container",
"images",
"add-tag",
"gcr.io/$PROJECT_ID/fakestock:$SHORT_SHA",
"gcr.io/$PROJECT_ID/fakestock:latest"
]
},
{
"name": "gcr.io/google.com/cloudsdktool/cloud-sdk",
"entrypoint": "gcloud",
"args": [
"run",
"deploy",
"fakestock",
"--image",
"gcr.io/$PROJECT_ID/fakestock:$SHORT_SHA",
"--region",
"us-east1",
"--platform",
"managed"
]
}
]
}