Skip to content

Commit f41ad20

Browse files
committed
Add Prometheus alert autodeployment
1 parent 2777117 commit f41ad20

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/prometheus.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "kubernetes/namespaces/monitoring/alerts/**"
9+
- ".github/workflows/prometheus.yaml"
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
deploy-alerts:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v6
21+
22+
- uses: azure/setup-kubectl@v4.0.1
23+
24+
- name: Authenticate with Kubernetes
25+
uses: azure/k8s-set-context@v4
26+
with:
27+
method: kubeconfig
28+
kubeconfig: ${{ secrets.kube-config }}
29+
30+
- name: Deploy alerts
31+
run: |
32+
cd kubernetes/namespaces/monitoring/alerts && make

0 commit comments

Comments
 (0)