Skip to content

Commit 46f1982

Browse files
authored
fix: helm (#33)
1 parent a8e44f5 commit 46f1982

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release-helm.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release Helm Chart
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths: [ 'charts/**' ]
7+
workflow_dispatch:
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: Configure Git
18+
run: |
19+
git config user.name "$GITHUB_ACTOR"
20+
git config user.email "[email protected]"
21+
- name: Run chart-releaser
22+
uses: helm/[email protected]
23+
env:
24+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
25+
CR_SKIP_EXISTING: true
26+
27+
- name: Login to DockerHub
28+
uses: docker/login-action@v2
29+
with:
30+
username: ${{ secrets.DOCKER_USERNAME }}
31+
password: ${{ secrets.DOCKER_PASSWORD }}
32+
- name: Push charts to DockerHub
33+
run: |
34+
shopt -s nullglob
35+
for pkg in .cr-release-packages/*.tgz; do
36+
if [ -z "${pkg:-}" ]; then
37+
break
38+
fi
39+
helm push "${pkg}" "oci://docker.io/${GITHUB_REPOSITORY_OWNER}/helm-charts"
40+
done

0 commit comments

Comments
 (0)