[results feed] Add cloud build and deploy for results feed

This adds cloud build scripts that deploy the results feed without the current results UI included. Redirects from the old location of the current results UI to its new location are added.

Bug: b/284923968
Change-Id: I04f6fb66fa39c4766b07a4b7d85af87841e4a482
Reviewed-on: https://dart-review.googlesource.com/c/dart_ci/+/307100
Reviewed-by: Alexander Thomas <athom@google.com>
diff --git a/results_feed/README.md b/results_feed/README.md
index b4fa86f..67ea85d 100644
--- a/results_feed/README.md
+++ b/results_feed/README.md
@@ -11,7 +11,11 @@
 - webdev 2.5.9 (run `pub global activate webdev 2.5.9`)
 
 ## Building
-Build the project with the command
+Build and deploy the project using cloud build with the command
+
+    gcloud --project=dart-ci builds submit
+
+Local builds can be run with
 
     webdev build --output=web:build/web
 
diff --git a/results_feed/cloudbuild.yaml b/results_feed/cloudbuild.yaml
new file mode 100644
index 0000000..9ff1270
--- /dev/null
+++ b/results_feed/cloudbuild.yaml
@@ -0,0 +1,11 @@
+steps:
+- name: google/dart:2.10
+  script: |
+    #!/usr/bin/env bash
+    dart pub get
+    dart pub global activate webdev 2.5.9
+    dart pub global run webdev build --output=web:build/web
+    rm -rf build/web/packages build/web/.dart_tool
+- name: gcr.io/$PROJECT_ID/firebase
+  args: ['deploy', '--project=dart-ci', '--only=hosting']
+
diff --git a/results_feed/firebase.json b/results_feed/firebase.json
index 0d8e9d9..23ff862 100644
--- a/results_feed/firebase.json
+++ b/results_feed/firebase.json
@@ -1,10 +1,12 @@
 {
   "hosting": {
     "public": "build/web",
-    "rewrites": [ {
+    "redirects": [ {
       "source": "/current_results**",
-      "destination": "/current_results/index.html"
-    },
+      "destination": "https://dart-current-results.web.app",
+      "type": 301
+    } ],
+    "rewrites": [
     {
       "source": "**",
       "destination": "/index.html"