11name : Release Helm Charts
22
33on :
4+ release :
5+ types :
6+ - published
47 push :
58 branches :
69 - main
710 paths :
811 - ' charts/gardener-extension-provider-ironcore/**'
9- workflow_dispatch :
12+ - ' charts/gardener-extension-admission-ironcore/**'
13+ tags :
14+ - ' v*.*.*'
15+ pull_request :
16+ branches :
17+ - main
18+ paths-ignore :
19+ - ' docs/**'
20+ - ' **/*.md'
21+ types : [labeled, opened, synchronize, reopened]
1022
1123jobs :
1224 helm-chart :
1325 runs-on : ubuntu-latest
1426 permissions :
1527 contents : read
1628 packages : write
29+
30+ if : |
31+ github.event_name == 'push' ||
32+ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ok-to-charts')) ||
33+ (github.event_name == 'release' && github.event.action == 'published')
1734 steps :
18- - name : Checkout
35+ - name : Checkout code
1936 uses : actions/checkout@v4
20- with :
21- fetch-depth : 0
2237
2338 - name : Set up Helm
2439 uses : azure/setup-helm@v4
@@ -44,18 +59,12 @@ jobs:
4459 run : |
4560 echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
4661
47- - name : Package provider Helm chart
62+ - name : Package Helm charts
4863 run : |
4964 helm package charts/gardener-extension-provider-ironcore --version ${{ steps.chart_version.outputs.version }}
50-
51- - name : Push provider Helm chart to GHCR
52- run : |
53- helm push gardener-extension-provider-ironcore-${{ steps.chart_version.outputs.version }}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts
54-
55- - name : Package admission Helm chart
56- run : |
5765 helm package charts/gardener-extension-admission-ironcore --version ${{ steps.chart_version.outputs.version }}
5866
59- - name : Push admission Helm chart to GHCR
67+ - name : Push Helm charts to GHCR
6068 run : |
61- helm push gardener-extension-admission-ironcore-${{ steps.chart_version.outputs.version }}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts
69+ helm push gardener-extension-provider-ironcore-${{ steps.chart_version.outputs.version }}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts
70+ helm push gardener-extension-admission-ironcore-${{ steps.chart_version.outputs.version }}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts
0 commit comments