-
Notifications
You must be signed in to change notification settings - Fork 4
80 lines (66 loc) · 1.85 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
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Helm
on:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: '${{ github.workflow }} @ ${{ github.ref }}'
cancel-in-progress: true
jobs:
changes:
name: Check for updated charts
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
if: |
(github.repository == 'iterative/helm-charts')
outputs:
charts: ${{ steps.filter.outputs.charts }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: dorny/[email protected]
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
filters: |
charts:
- 'charts/studio/Chart.yaml'
- 'charts/studio/values.yaml'
release:
name: Release chart
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- changes
if: |
(github.repository == 'iterative/helm-charts') &&
(needs.changes.outputs.charts == 'true')
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
with:
version: v3.10.0
- name: Add repositories for dependencies
run: |
for dir in $(ls -d charts/*/); do
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
done
- name: Run chart-releaser
uses: helm/[email protected]
env:
config: .github/chart-releaser-config.yaml
CR_SKIP_EXISTING: "false"
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"