From 346c687b72aaed165fdda65428c43993845a5327 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Fri, 2 Feb 2024 11:11:43 -0600 Subject: [PATCH 1/2] Add build schedule --- .github/workflows/build-deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index e0cc637..84c5bfb 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -5,6 +5,8 @@ on: branches: - main workflow_dispatch: + schedule: + - cron: '0 8 * * 1' permissions: id-token: write @@ -27,7 +29,7 @@ jobs: container: image: registry.gitlab.com/cmmarslender/kubectl-helm:v3 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Vault Login uses: Chia-Network/actions/vault/login@main From 4a6b92b0e315af14df7bb35c6e1b76cccac0a6dd Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Fri, 2 Feb 2024 11:45:13 -0600 Subject: [PATCH 2/2] Add trigger to glue when workflow is complete --- .github/workflows/build-deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 84c5bfb..cffeef1 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -71,3 +71,7 @@ jobs: app_name: grafana helm_chart: "./helm/pub-metrics-grafana" helm_values: "./helm/values.yaml" + + - name: Trigger downstream workflows + run: | + curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" ${{ secrets.GLUE_API_URL }}/api/v1/pub-metrics-grafana/trigger