blob: 43e4247009aa020d7a33ee08d72bc625a43dfea2 [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": "gcr.io/cloud-builders/docker",
"entrypoint": "sh",
"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"
]
},
{
"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"
}
}