File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build, Test & Publish Helm Chart
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ release :
11+ types : [published]
12+
13+ jobs :
14+ lint :
15+ name : Lint Helm Chart
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v3
20+
21+ - name : Set up Helm
22+ uses : azure/setup-helm@v1
23+
24+ - name : Lint Helm Chart
25+ run : helm lint helm-charts/bingo
26+
27+ publish :
28+ name : Package and Publish Helm Chart
29+ if : github.event_name == 'release'
30+ needs : lint
31+ runs-on : ubuntu-latest
32+ steps :
33+ - name : Checkout repository
34+ uses : actions/checkout@v3
35+
36+ - name : Set up Helm
37+ uses : azure/setup-helm@v1
38+
39+ - name : Package Helm Chart
40+ run : |
41+ mkdir -p dist
42+ helm package helm-charts/bingo --destination offendingcommit/bingo
43+
44+ - name : Upload Helm Chart to GitHub Release
45+ uses : softprops/action-gh-release@v1
46+ with :
47+ files : dist/*.tgz
48+ env :
49+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments