-
-
Notifications
You must be signed in to change notification settings - Fork 10
67 lines (55 loc) · 1.77 KB
/
helm.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Helm
on:
push:
paths:
- '.github/workflows/helm.yaml'
- 'deploy/helm/**'
jobs:
helm:
name: Helm Chart
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
run: |
helm lint deploy/helm/kobs
- name: Template
run: |
helm template -n kobs kobs deploy/helm/kobs
- name: Install
run: |
kind create cluster
sleep 60s
kubectl create namespace kobs
sleep 10s
helm install -n kobs kobs deploy/helm/kobs
- name: Configure SSH
if: ${{ github.ref == 'refs/heads/main' }}
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Configure Git
if: ${{ github.ref == 'refs/heads/main' }}
run: |
git config --global user.email "admin@kobs.io" && git config --global user.name "kobsio"
- name: Package Helm Chart
if: ${{ github.ref == 'refs/heads/main' }}
run: |
helm package ./deploy/helm/kobs
- name: Clone Helm Repository
if: ${{ github.ref == 'refs/heads/main' }}
run: |
git clone git@github.com:kobsio/helm-repository.git
- name: Update Helm Repository
if: ${{ github.ref == 'refs/heads/main' }}
run: |
mv kobs* ./helm-repository/ && helm repo index helm-repository/ --url https://helm.kobs.io/
- name: Commit Changes
if: ${{ github.ref == 'refs/heads/main' }}
run: |
cd helm-repository/ && git add . && git commit -m "Add new release for kobs"
- name: Push Changes
if: ${{ github.ref == 'refs/heads/main' }}
run: |
cd helm-repository/ && git push