blob: f392763646b64bc1d24fc1cb384a96514db9619c [file] [log] [blame]
# This Cloud Build file is run automatically when commits land in the website repo.
# See https://console.cloud.google.com/cloud-build/triggers?project=golang-org.
# Do not run directly.
steps:
- name: gcr.io/cloud-builders/git
args: [
"clone", "--branch=${_GO_REF}", "--depth=1",
"https://go.googlesource.com/go", "_gotmp",
]
- name: gcr.io/cloud-builders/git
dir: _gotmp
args: [
"archive", "--format=zip", "--output=../_goroot.zip", "HEAD",
]
- name: golang
args: ["rm", "-rf", "_gotmp"]
- name: golang
args: ["go", "test", "./..."]
- name: golang
entrypoint: bash
args: ["-c", "go run ./go.dev/cmd/events/ > ./go.dev/_content/events.yaml"]
- name: gcr.io/cloud-builders/gcloud
entrypoint: bash
args: ["./go-app-deploy.sh", "cmd/golangorg/app.yaml"]
- name: gcr.io/cloud-builders/gcloud
entrypoint: bash
args: ["./go-app-deploy.sh", "--project=go-discovery", "cmd/golangorg/godevapp.yaml"]
- name: golang
args: [
"go", "run", "./go.dev/cmd/versionprune", "--dry_run=false",
"--project=$PROJECT_ID", "--service=default",
]
- name: golang
args: [
"go", "run", "./go.dev/cmd/versionprune", "--dry_run=false",
"--project=go-discovery", "--service=go-dev",
]
options:
machineType: N1_HIGHCPU_8