Deploy alerts for Byggeren to preprod and prod #8
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 | |
run-name: Deploy alerts for Byggeren to preprod and prod | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.nais/bygger/alerts.yaml' | |
- '.nais/bygger/preprod.yaml' | |
- '.nais/bygger/prod.yaml' | |
- '.github/workflows/alert-deploy.yaml' | |
jobs: | |
preprod-deploy: | |
name: Deploy to preprod | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Deploy to preprod | |
uses: nais/deploy/actions/deploy@v2 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: dev-gcp | |
RESOURCE: './.nais/bygger/alerts.yaml' | |
VARS: './.nais/bygger/preprod.yaml' | |
prod-deploy: | |
name: Deploy to prod | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Deploy to prod | |
uses: nais/deploy/actions/deploy@v2 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: prod-gcp | |
RESOURCE: './.nais/bygger/alerts.yaml' | |
VARS: './.nais/bygger/prod.yaml' |