blob: a4731cce6cc1a0311262f1e44fac7c43853c4be1 [file] [log] [blame]
{
"steps": [
{
"name": "golang",
"env": [
"GO111MODULE=on"
],
"entrypoint": "bash",
"args": [
"-c",
"go run golang.org/x/playground/cmd/latestgo -prev > /workspace/goversion && echo GO_VERSION=`cat /workspace/goversion`"
]
},
{
"name": "gcr.io/cloud-builders/docker",
"entrypoint": "bash",
"args": [
"-c",
"docker build --build-arg GO_VERSION=`cat /workspace/goversion` -t gcr.io/$PROJECT_ID/playground-goprev ."
]
},
{
"name": "gcr.io/cloud-builders/docker",
"args": [
"push",
"gcr.io/$PROJECT_ID/playground-goprev"
]
},
{
"name": "gcr.io/cloud-builders/gcloud",
"args": [
"app",
"deploy",
"app.goprev.yaml",
"--project=$PROJECT_ID",
"--image-url=gcr.io/$PROJECT_ID/playground-goprev:latest"
]
}
],
"timeout": "3600s",
"options": {
"machineType": "N1_HIGHCPU_8"
}
}