-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.05 KB
/
alert-deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
permissions:
id-token: 'write'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to preprod
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: './.nais/bygger/alerts.yaml'
VARS: './.nais/bygger/preprod.yaml'
prod-deploy:
name: Deploy to prod
runs-on: ubuntu-latest
permissions:
id-token: 'write'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to prod
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: './.nais/bygger/alerts.yaml'
VARS: './.nais/bygger/prod.yaml'