-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 1.71 KB
/
alert-deploy.yaml
File metadata and controls
64 lines (57 loc) · 1.71 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Deploy alerts
run-name: Deploy alerts for Dapla Ctrl to test and prod
on:
push:
branches:
- main
paths:
- '.nais/alerts.yaml'
- '.github/workflows/alert-deploy.yaml'
workflow_dispatch:
permissions:
id-token: write
env:
TEAM: dapla-stat
jobs:
test-deploy:
name: Deploy alerts to test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4
name: Retrieve AlertManager configuration
with:
repository: "statisticsnorway/nais-alert-config"
path: "ext_alertconfig"
sparse-checkout: |
alertconfig.yaml
sparse-checkout-cone-mode: false
- name: Deploy to test
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: test
RESOURCE: .nais/alerts.yaml,ext_alertconfig/alertconfig.yaml
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
VAR: cluster=test,team=${{ env.TEAM }}
prod-deploy:
name: Deploy alerts to prod
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4
name: Retrieve AlertManager configuration
with:
repository: "statisticsnorway/nais-alert-config"
path: "ext_alertconfig"
sparse-checkout: |
alertconfig.yaml
sparse-checkout-cone-mode: false
- name: Deploy to prod
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod
RESOURCE: .nais/alerts.yaml,ext_alertconfig/alertconfig.yaml
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
VAR: cluster=prod,team=${{ env.TEAM }}