File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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+ 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
You can’t perform that action at this time.
0 commit comments