Skip to content

Update deploy-alerts.yml #26

Update deploy-alerts.yml

Update deploy-alerts.yml #26

Workflow file for this run

name: Deploy alerts to NAIS
on:
push:
paths:
- 'nais/alerts/**'
- '.github/workflows/deploy-alerts.yml'
branches:
- master
jobs:
deploy-to-dev-and-prod:
name: Deploy to ${{ matrix.cluster }}
runs-on: ubuntu-latest
strategy:
matrix:
cluster: [dev-fss, prod-fss]
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.DEPLOY_KEY }}
CLUSTER: ${{ matrix.cluster }}
RESOURCE: nais/alerts/alert-manager.yml
VAR: |
cluster=${{ matrix.cluster }}
slack_channel=${{ matrix.cluster == 'prod-fss' && '#k9-los-alerts' || '#k9-los-alerts-dev' }}
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.DEPLOY_KEY }}
CLUSTER: ${{ matrix.cluster }}
RESOURCE: nais/alerts/alerts.yml