Fikser alerts. #145
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
# This workflow trigger on push to any branch. | |
name: Alerts | |
on: | |
push: | |
paths: | |
- 'nais/alerterator-*' | |
- 'nais/dev-gcp.json' | |
- 'nais/prod-gcp.json' | |
- '.github/workflows/apply-alerts.yml' | |
branches: | |
- 'master' | |
- 'dev-**' | |
jobs: | |
deploy-dev-gcp: | |
name: Deploy to dev-gcp | |
if: startsWith(github.ref, 'refs/heads/dev-') || startsWith(github.ref, 'refs/heads/master') # Deploy if branch is either master or dev-* | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nais/deploy/actions/deploy@v2 | |
env: | |
CLUSTER: dev-gcp | |
RESOURCE: nais/alerterator-dev.yml | |
VARS: nais/dev-gcp.json | |
deploy-prod-gcp: | |
name: Deploy to prod-gcp | |
if: startsWith(github.ref, 'refs/heads/master') # If the branch is master | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nais/deploy/actions/deploy@v2 | |
env: | |
CLUSTER: prod-gcp | |
RESOURCE: nais/alerterator-prod.yml | |
VARS: nais/prod-gcp.json |