Bytt alerting til PrometheusRule i prod #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy alerts to NAIS | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.nais/alerts.yaml' | |
- '.github/workflows/alerts-deploy-prod.yaml' | |
permissions: {} | |
jobs: | |
apply-alerts: | |
name: Apply alerts to cluster | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: deploy to prod | |
uses: nais/deploy/actions/deploy@v1 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: prod-gcp | |
RESOURCE: .nais/alerts.yaml |