Flytte applikasjon over til pia (#187) #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/deploy-alerts.yaml' | |
permissions: | |
id-token: write | |
jobs: | |
apply-alerts: | |
name: Apply alerts to clusters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: deploy to dev-gcp | |
uses: nais/deploy/actions/deploy@v2 | |
env: | |
CLUSTER: dev-gcp | |
RESOURCE: .nais/alerts.yaml | |
- name: deploy to prod-gcp | |
uses: nais/deploy/actions/deploy@v2 | |
env: | |
CLUSTER: prod-gcp | |
RESOURCE: .nais/alerts.yaml |