From c825110c2b30b4995cc952e138741ec6079f3fa0 Mon Sep 17 00:00:00 2001 From: Michi Mutsuzaki Date: Mon, 22 Aug 2022 20:32:03 -0700 Subject: [PATCH] Push workflow run results to Loki Use michi-covalent/push-to-loki to push workflow run results to Loki to make it easier to monitor the overall health of the CI. My ultimate goal is to get rid of Slack notifications. Ref: https://github.com/michi-covalent/push-to-loki Signed-off-by: Michi Mutsuzaki --- cli/.github/workflows/loki.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cli/.github/workflows/loki.yaml diff --git a/cli/.github/workflows/loki.yaml b/cli/.github/workflows/loki.yaml new file mode 100644 index 0000000000000..37bf1a5bf6321 --- /dev/null +++ b/cli/.github/workflows/loki.yaml @@ -0,0 +1,32 @@ +name: Push to Loki + +on: + workflow_run: + workflows: + - AKS (Azure IPAM) + - AKS (BYOCNI) + - EKS (tunnel) + - EKS (ENI) + - External Workloads + - GKE + - Go + - Image CI Build + - Kind + - Multicluster + - Create Release + types: + - completed + +permissions: + actions: read + +jobs: + push-to-loki: + runs-on: ubuntu-latest + steps: + - name: Push to Loki + uses: michi-covalent/push-to-loki@v0.2.0 + with: + endpoint: https://logs-prod3.grafana.net/loki/api/v1/push + username: ${{ secrets.LOKI_USERNAME }} + password: ${{ secrets.LOKI_PASSWORD }}