Skip to content

Merge pull request #1186 from navikt/post_gcp_migr_cleanup #5

Merge pull request #1186 from navikt/post_gcp_migr_cleanup

Merge pull request #1186 from navikt/post_gcp_migr_cleanup #5

name: 'deploy: alerts'
on:
push:
branches:
- main
paths:
- '.github/workflows/deploy-alerts.yaml'
- 'apps/frackend/nais/alerts-frackend-dev-gcp.yaml'
- 'apps/frackend/nais/alerts-frackend-prod-gcp.yaml'
- 'apps/backend/nais/alerts-backend-dev-gcp.yaml'
- 'apps/backend/nais/alerts-backend-prod-gcp.yaml'
workflow_dispatch:
jobs:
apply-backend-alerts:
name: Apply backend alerts
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to dev
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: apps/backend/nais/alerts-backend-dev-gcp.yaml
- name: Deploy to prod
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: apps/backend/nais/alerts-backend-prod-gcp.yaml
apply-frackend-alerts:
name: Apply frackend alerts
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to dev
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: apps/frackend/nais/alerts-frackend-dev-gcp.yaml
- name: Deploy to prod
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: apps/frackend/nais/alerts-frackend-prod-gcp.yaml