deploy: add triggers for the goprev playground

Change-Id: Icf535d55b2ab042e4badf8b41042c1e3a1480906
Reviewed-on: https://go-review.googlesource.com/c/playground/+/395034
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/Makefile b/Makefile
index e9700f2..4854fb8 100644
--- a/Makefile
+++ b/Makefile
@@ -34,12 +34,16 @@
 
 push-cloudbuild-triggers:
 	gcloud beta builds triggers import --project golang-org --source deploy/go_trigger.yaml
+	gcloud beta builds triggers import --project golang-org --source deploy/go_goprev_trigger.yaml
 	gcloud beta builds triggers import --project golang-org --source deploy/playground_trigger.yaml
+	gcloud beta builds triggers import --project golang-org --source deploy/playground_goprev_trigger.yaml
 	gcloud alpha builds triggers import --project golang-org --source deploy/gotip_scheduled_trigger.yaml
 	@echo "$$GOTIP_MESSAGE"
 
 pull-cloudbuild-triggers:
 	gcloud beta builds triggers export --project golang-org playground-redeploy-go-release --destination deploy/go_trigger.yaml
+	gcloud beta builds triggers export --project golang-org playground-redeploy-goprev-go-release --destination deploy/go_goprev_trigger.yaml
 	gcloud beta builds triggers export --project golang-org playground-redeploy-playground --destination deploy/playground_trigger.yaml
+	gcloud beta builds triggers export --project golang-org playground-redeploy-goprev-playground --destination deploy/playground_goprev_trigger.yaml
 	gcloud alpha builds triggers export --project golang-org playground-deploy-gotip-playground --destination deploy/gotip_scheduled_trigger.yaml
 	gcloud scheduler --project=golang-org jobs describe --format=yaml playground-deploy-gotip-playground-schedule > deploy/gotip_schedule.yaml
diff --git a/README.md b/README.md
index b145b8c..702df1c 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@
 and [deploy/deploy.json](deploy/deploy.json).
 
 Changes to the trigger configuration can be made to the YAML files, or in the GCP UI, which should be kept in sync
-using the `push-cloudbuild-trigger` and `pull-cloudbuild-trigger` make targets.
+using the `push-cloudbuild-triggers` and `pull-cloudbuild-triggers` make targets.
 
 ### Deploy via Cloud Build
 
diff --git a/deploy/deploy_goprev.json b/deploy/deploy_goprev.json
index 77c3535..660f8a8 100644
--- a/deploy/deploy_goprev.json
+++ b/deploy/deploy_goprev.json
@@ -37,5 +37,8 @@
       ]
     }
   ],
-  "timeout": "3600s"
+  "timeout": "3600s",
+  "options": {
+    "machineType": "N1_HIGHCPU_8"
+  }
 }
diff --git a/deploy/go_goprev_trigger.yaml b/deploy/go_goprev_trigger.yaml
new file mode 100644
index 0000000..6dbba78
--- /dev/null
+++ b/deploy/go_goprev_trigger.yaml
@@ -0,0 +1,25 @@
+build:
+  steps:
+  - args:
+    - clone
+    - --depth
+    - '1'
+    - https://go.googlesource.com/playground
+    name: gcr.io/cloud-builders/git
+  - args:
+    - builds
+    - submit
+    - --async
+    - --config
+    - deploy/deploy_goprev.json
+    - .
+    dir: playground
+    name: gcr.io/cloud-builders/gcloud
+createTime: '2022-03-23T14:26:03.683560061Z'
+description: Redeploy the goprev playground on new tagged Go release
+id: 652aa58f-6376-4a89-a881-e5b0ed2ddbba
+name: playground-redeploy-goprev-go-release
+triggerTemplate:
+  projectId: golang-org
+  repoName: go
+  tagName: ^go[0-9](\.[0-9]+)+$
diff --git a/deploy/gotip_schedule.yaml b/deploy/gotip_schedule.yaml
index 27eeddd..dcc1900 100644
--- a/deploy/gotip_schedule.yaml
+++ b/deploy/gotip_schedule.yaml
@@ -10,10 +10,11 @@
     scope: https://www.googleapis.com/auth/cloud-platform
     serviceAccountEmail: cloud-build-trigger-scheduler@golang-org.iam.gserviceaccount.com
   uri: https://cloudbuild.googleapis.com/v1/projects/golang-org/triggers/b30b6980-4b88-4c10-91d4-5705c793fa1b:run
-lastAttemptTime: '2021-11-23T16:22:00.122806Z'
+lastAttemptTime: '2022-03-23T14:00:00.657383Z'
 name: projects/golang-org/locations/us-central1/jobs/playground-deploy-gotip-playground-schedule
 schedule: 0 10 * * *
-scheduleTime: '2021-11-24T15:00:00Z'
+scheduleTime: '2022-03-24T14:00:00.140242Z'
 state: ENABLED
+status: {}
 timeZone: America/New_York
 userUpdateTime: '2021-11-23T16:27:07Z'
diff --git a/deploy/playground_goprev_trigger.yaml b/deploy/playground_goprev_trigger.yaml
new file mode 100644
index 0000000..1a255f7
--- /dev/null
+++ b/deploy/playground_goprev_trigger.yaml
@@ -0,0 +1,9 @@
+createTime: '2022-03-23T14:30:37.556961257Z'
+description: Redeploy the goprev playground on x/playground commit
+filename: deploy/deploy_goprev.json
+id: 4964e99e-4472-4279-8b92-244cbc5e2cd6
+name: playground-redeploy-goprev-playground
+triggerTemplate:
+  branchName: ^master$
+  projectId: golang-org
+  repoName: playground