-
Notifications
You must be signed in to change notification settings - Fork 207
/
deploy.json
57 lines (57 loc) · 1.43 KB
/
deploy.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
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"steps": [
{
"name": "golang",
"entrypoint": "sh",
"args": [
"-c",
"go run golang.org/x/playground/cmd/latestgo > /workspace/goversion && echo GO_VERSION=`cat /workspace/goversion`"
]
},
{
"name": "golang",
"entrypoint": "sh",
"args": [
"-c",
"go run golang.org/x/playground/cmd/latestgo -prev -toolchain > /workspace/gobootstrapversion && echo GO_BOOTSTRAP_VERSION=`cat /workspace/gobootstrapversion`"
]
},
{
"name": "gcr.io/cloud-builders/docker",
"entrypoint": "sh",
"args": [
"-c",
"docker build --build-arg GO_VERSION=`cat /workspace/goversion` --build-arg GO_BOOTSTRAP_VERSION=`cat /workspace/gobootstrapversion` -t gcr.io/$PROJECT_ID/playground ."
]
},
{
"name": "gcr.io/cloud-builders/docker",
"args": [
"push",
"gcr.io/$PROJECT_ID/playground"
]
},
{
"name": "gcr.io/cloud-builders/gcloud",
"args": [
"app",
"deploy",
"app.yaml",
"--project=$PROJECT_ID",
"--image-url=gcr.io/$PROJECT_ID/playground:latest"
]
},
{
"name": "golang",
"entrypoint": "sh",
"args": [
"-c",
"go run golang.org/x/website/cmd/versionprune@latest -dry_run=false -project=$PROJECT_ID -service=play"
]
}
],
"timeout": "3600s",
"options": {
"machineType": "N1_HIGHCPU_8"
}
}