blob: db7ca68a33daec076b24f2d71ccd43fe3c172e96 [file] [log] [blame]
{
"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"
}
}