From 5f29e3fafcdbf8ad1e3aa6a69d7696b1829992b1 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Mon, 18 Mar 2024 11:59:33 -0400 Subject: [PATCH] Add dispatch.yaml for production deployment of dashboards.measurementlab.net (#8) * Add dispatch.yaml for production configuration * Move dispatch.yaml * Deploy dispatch only in production --- cloudbuild.yaml | 6 ++++++ grafana-public/dispatch.yaml | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 grafana-public/dispatch.yaml diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 3ee2d2c..04013e5 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -28,3 +28,9 @@ steps: - PROJECT_IN=mlab-sandbox,mlab-staging,measurement-lab args: - gcloud app deploy grafana-public/app.yaml --project $PROJECT_ID + +- name: us-central1-docker.pkg.dev/${_IMAGE_PROJECT}/build-images/gcloud-jsonnet-cbif:1.1 + env: + - PROJECT_IN=measurement-lab + args: + - gcloud app deploy grafana-public/dispatch.yaml --project $PROJECT_ID diff --git a/grafana-public/dispatch.yaml b/grafana-public/dispatch.yaml new file mode 100644 index 0000000..a65c655 --- /dev/null +++ b/grafana-public/dispatch.yaml @@ -0,0 +1,4 @@ +dispatch: +# Route all requests to the grafana-public service. +- service: grafana-public + url: "dashboards.measurementlab.net/*"