| { |
| "steps": [ |
| { |
| "name": "golang", |
| "entrypoint": "sh", |
| "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": "sh", |
| "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" |
| ] |
| }, |
| { |
| "name": "golang", |
| "entrypoint": "sh", |
| "args": [ |
| "-c", |
| "go run golang.org/x/website/cmd/versionprune@latest -dry_run=false -project=$PROJECT_ID -service=goprevplay" |
| ] |
| } |
| ], |
| "timeout": "3600s", |
| "options": { |
| "machineType": "N1_HIGHCPU_8" |
| } |
| } |