Skip to content

Deploy grafana dashboards #28

Deploy grafana dashboards

Deploy grafana dashboards #28

name: Deploy grafana dashboards
on: workflow_dispatch
jobs:
deploy_grafana_dashboards:
runs-on: ubuntu-20.04
strategy:
# Don't stop other deployments if one fails
fail-fast: false
matrix:
include:
# The grafana for 2i2c cluster holds also info about all other clusters
- cluster_name: 2i2c
- cluster_name: 2i2c-aws-us
- cluster_name: 2i2c-uk
- cluster_name: awi-ciroh
- cluster_name: bican
- cluster_name: catalystproject-africa
- cluster_name: catalystproject-latam
- cluster_name: cloudbank
- cluster_name: dandi
- cluster_name: gridsst
- cluster_name: hhmi
- cluster_name: jupyter-meets-the-earth
- cluster_name: leap
- cluster_name: linc
- cluster_name: linked-earth
- cluster_name: meom-ige
- cluster_name: nasa-cryo
- cluster_name: nasa-esdis
- cluster_name: nasa-veda
- cluster_name: openscapes
- cluster_name: opensci
- cluster_name: pangeo-hubs
- cluster_name: qcl
- cluster_name: smithsonian
- cluster_name: ubc-eoas
- cluster_name: utoronto
- cluster_name: victor
- cluster_name: jupyter-health
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install deployer
run: |
python3 -m pip install --editable .
sudo apt install jsonnet
- name: Install sops
uses: mdgreenwald/[email protected]
- name: Setup sops credentials to decrypt repo secrets
uses: google-github-actions/auth@v2
with:
credentials_json: "${{ secrets.GCP_KMS_DECRYPTOR_KEY }}"
- name: Deploy grafana dashboards for ${{ matrix.cluster_name }}
run: |
deployer grafana deploy-dashboards ${{ matrix.cluster_name }}