Skip to content

Fikser alert labels. #2

Fikser alert labels.

Fikser alert labels. #2

Workflow file for this run

# 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/main') # Deploy if branch is either master or dev-*
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
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/main') # If the branch is master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: nais/alerterator-prod.yml
VARS: nais/prod-gcp.json