-
-
Notifications
You must be signed in to change notification settings - Fork 103
45 lines (35 loc) · 1.45 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
name: Helm
on:
push:
paths:
- 'charts/vault-secrets-operator/**'
jobs:
build-release:
name: Helm Chart
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
run: |
helm lint charts/vault-secrets-operator
- name: Template
run: |
helm template vault-secrets-operator -n vault-secrets-operator charts/vault-secrets-operator
- name: Configure git
run: git config --global user.email "[email protected]" && git config --global user.name "ricoberger"
- name: Package Helm Chart
if: ${{ github.ref == 'refs/heads/main' }}
run: helm package charts/vault-secrets-operator
- name: Clone Helm Repository
if: ${{ github.ref == 'refs/heads/main' }}
run: git clone https://github.com/ricoberger/helm-charts.git
- name: Update Helm Repository
if: ${{ github.ref == 'refs/heads/main' }}
run: mv vault-secrets-operator* helm-charts/ && helm repo index helm-charts/ --url https://ricoberger.github.io/helm-charts/
- name: Commit Changes
if: ${{ github.ref == 'refs/heads/main' }}
run: cd helm-charts/ && git add . && git commit -m "Add new release for Vault Secrets Operator"
- name: Push Changes
if: ${{ github.ref == 'refs/heads/main' }}
run: cd helm-charts/ && git push https://ricoberger:${{ secrets.TOKEN }}@github.com/ricoberger/helm-charts.git