blob: 72d9415b6649dbe949bb49fc9c3e38387cc4738f [file] [log] [blame]
{
"steps": [
{
"name": "golang",
"entrypoint": "bash",
"args": [
"-c",
"cd go && go get golang.org/x/build/maintner/maintq && cp /go/bin/maintq /workspace/maintq"
]
},
{
"name": "debian:stretch",
"entrypoint": "bash",
"args": [
"-c",
"apt-get update && apt-get install -y ca-certificates && ./maintq list-releases | head -n 1 | sed -re 's/^.*tag_name:\"(go[0-9](\\.[0-9]+)+)\".*$/\\1/g' > /workspace/latestgo"
]
},
{
"name": "gcr.io/cloud-builders/docker",
"entrypoint": "bash",
"args": [
"-c",
"docker build --build-arg GO_VERSION=`cat /workspace/latestgo` -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"
}