File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+ on :
3+ push :
4+ branches :
5+ - master
6+ - v*
7+ tags :
8+ - v*
9+ pull_request :
10+ env :
11+ HELM_REGISTRY : ghcr.io
12+ CHART_DIR : deploy/chart/local-path-provisioner
13+ jobs :
14+ build_push_helm_chart :
15+ name : Build and Push Chart
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+
21+ - name : Log in to the Container registry
22+ uses : docker/login-action@v3
23+ with :
24+ registry : ${{ env.HELM_REGISTRY }}
25+ username : ${{ github.actor }}
26+ password : ${{ secrets.GITHUB_TOKEN }}
27+
28+ - name : Publish OCI helm chart
29+ run : |
30+ helm package ./${{ env.CHART_DIR }} --destination ./chart
31+ helm push ./chart/*.tgz oci://${{ env.HELM_REGISTRY }}/${{ github.repository_owner }}/${{ github.event.repository.name }}/charts
You can’t perform that action at this time.
0 commit comments