blob: 83a0705a7d76b0a06f01299cce0944f48d6d8038 [file] [log] [blame]
{
"steps": [
{
"name": "golang",
"env": [
"GO111MODULE=on"
],
"entrypoint": "bash",
"args": [
"-c",
"go run golang.org/x/playground/cmd/latestgo > /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 ."
]
},
{
"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"
]
}
],
"timeout": "1800s"
}