-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.json
More file actions
52 lines (52 loc) · 1.17 KB
/
cloudbuild.json
File metadata and controls
52 lines (52 loc) · 1.17 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
{
"source": {
"storageSource": {
"bucket": "cricleci-cloudbuilds",
"object": "$CIRCLE_PROJECT_REPONAME-$CIRCLE_SHA1.zip"
}
},
"timeout": "1200s",
"steps": [
{
"name": "gcr.io/cloud-builders/docker",
"args": [
"build",
"-f",
"Dockerfile",
"-t",
"gcr.io/$GCP_PROJECT/$CIRCLE_PROJECT_REPONAME:$VERSION",
".",
"--build-arg",
"env=$_ENV"
],
"timeout": "1000s"
},
{
"name": "gcr.io/cloud-builders/docker",
"args": ["push", "gcr.io/$GCP_PROJECT/$CIRCLE_PROJECT_REPONAME:$VERSION"]
},
{
"name": "gcr.io/cloud-builders/kubectl",
"args": [
"set",
"image",
"deployment",
"$K8S_DEPLOY_NAME",
"web=gcr.io/$GCP_PROJECT/$CIRCLE_PROJECT_REPONAME:$VERSION",
"--namespace",
"$K8S_NS"
],
"env": [
"CLOUDSDK_COMPUTE_ZONE=$GCP_ZONE",
"CLOUDSDK_CONTAINER_CLUSTER=$GCP_CLUSTER"
]
},
{
"name": "gcr.io/cloud-builders/gsutil",
"args": [
"rm",
"gs://cricleci-cloudbuilds/$CIRCLE_PROJECT_REPONAME-$CIRCLE_SHA1.zip"
]
}
]
}