Skip to content

Commit

Permalink
alert-deploy.yml (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb-jnk authored Jan 10, 2025
1 parent f641eeb commit 94a5601
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/alert-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy alerts
run-name: Deploy alerts for pseudo-service to dev and prod

on:
push:
branches:
- master
- nais-deploy
paths:
- '.nais/alerts.yaml'
- '.github/workflows/alert-deploy.yml'
permissions:
id-token: write

jobs:
test-deploy:
name: Deploy alerts to test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to test
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: test
RESOURCE: .nais/alerts.yaml
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443

prod-deploy:
name: Deploy alerts 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:
CLUSTER: prod
RESOURCE: .nais/alerts.yaml
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443

0 comments on commit 94a5601

Please sign in to comment.