Skip to content

Commit 32b7893

Browse files
create a helm chart action
Signed-off-by: Jonathan Irvin <djfoxyslpr@gmail.com>
1 parent bf70660 commit 32b7893

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/helm-chart.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 }}

0 commit comments

Comments
 (0)