-
Notifications
You must be signed in to change notification settings - Fork 120
46 lines (46 loc) · 1.25 KB
/
helm.yml
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
---
name: helm
on:
push:
branches:
- master
jobs:
changes:
runs-on: ubuntu-latest
outputs:
chart: ${{ steps.filter.outputs.chart }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
filters: |
chart:
- 'chart/chaoskube/Chart.yaml'
- 'chart/chaoskube/**/*'
chart:
name: release chart
runs-on: ubuntu-latest
needs:
- changes
if: |
needs.changes.outputs.chart == 'true'
steps:
- name: Checkout master
uses: actions/checkout@v4
with:
# Fetch entire history. Required for chart-releaser; see https://github.com/helm/chart-releaser-action/issues/13#issuecomment-602063896
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
with:
charts_dir: chart