File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 contents : read
2525 id-token : write
2626 packages : write
27+ helm :
28+ # Only release the helm chart once images have been successfully pushed
29+ needs : images
30+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
31+ uses : ./.github/workflows/helm-release-reusable.yml
32+ permissions :
33+ contents : read
34+ packages : write
35+ with :
36+ version : 0.0.0-master
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ---
2+ name : Reusable helm chart release workflow
3+
4+ on :
5+ workflow_call :
6+ inputs :
7+ version :
8+ required : true
9+ type : string
10+
11+ permissions :
12+ contents : read
13+ packages : write
14+
15+ jobs :
16+ helm :
17+ runs-on : ubuntu-latest
18+ timeout-minutes : 15
19+ steps :
20+ - uses : actions/checkout@v7
21+ with :
22+ ref : ${{ github.sha }}
23+ - uses : azure/setup-helm@v5.0.1
24+ - run : helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
25+ - name : Package and push
26+ run : |
27+ helm package charts/cmk-rustik \
28+ --version ${{ inputs.version }} \
29+ --app-version "sha-${{ github.sha }}"
30+ helm push cmk-rustik-${{ inputs.version }}.tgz \
31+ oci://ghcr.io/${{ github.repository_owner }}/charts
You can’t perform that action at this time.
0 commit comments