-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (48 loc) · 1.39 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
name: Test and Release Helm Charts
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
types: [opened, synchronize, reopened]
branches:
- 'main'
jobs:
test:
name: Run Helm unit tests
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set up Helm
uses: azure/setup-helm@v3
- name: Install Helm Unittest
run: helm plugin install https://github.com/helm-unittest/helm-unittest.git
- name: Run tests
run: make helm-unittest
release:
name: Release Helm packages and update repository on gh-pages
needs:
- test
if: ${{ github.ref_type == 'tag' }}
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
- name: Run chart-releaser
# uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968
uses: edmondop/chart-releaser-action@ef58c21b3f93daff872ba384abd9cdb16e715334
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"