-
Notifications
You must be signed in to change notification settings - Fork 37
33 lines (26 loc) · 810 Bytes
/
check.yml
File metadata and controls
33 lines (26 loc) · 810 Bytes
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
name: Helm Chart CI
on:
push:
jobs:
helm_chart_ci:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Set up Helm
- name: Set up Helm
uses: azure/setup-helm@v3
# Step 3: Lint the Helm chart
- name: Lint Helm chart
run: |
helm lint .
# Step 4: Install kubeconform
- name: Install kubeconform
run: |
curl -LO https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz
tar -xzf kubeconform-linux-amd64.tar.gz
# Step 5: Render and validate Helm templates
- name: Validate rendered Helm templates
run: |
helm template . | ./kubeconform --strict