Skip to content

Commit

Permalink
Add build schedule (#73)
Browse files Browse the repository at this point in the history
* Add build schedule

* Add trigger to glue when workflow is complete
  • Loading branch information
cmmarslender authored Feb 2, 2024
1 parent 5b9d7ac commit 949c9ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 8 * * 1'

permissions:
id-token: write
Expand All @@ -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
Expand Down Expand Up @@ -69,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

0 comments on commit 949c9ba

Please sign in to comment.