Skip to content

Commit 455f062

Browse files
committed
Bump helm-charts on release
1 parent 9fe47e2 commit 455f062

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/publish-helm.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
publish-chart:
1616
runs-on: ubuntu-latest
1717
permissions:
18-
contents: read
18+
contents: write # Required for pushing the repository
1919
packages: write # Required to push to GHCR
2020

2121
steps:
@@ -25,6 +25,14 @@ jobs:
2525
- name: Install Helm
2626
uses: azure/[email protected]
2727

28+
- name: Bump Helm Chart
29+
uses: pluralsh/[email protected]
30+
with:
31+
path: ./charts/openstack-hypervisor-operator/
32+
release: "0.1.0"
33+
branch: main
34+
github-token: ${{ secrets.GITHUB_TOKEN }}
35+
2836
- name: Package Helm chart
2937
run: |
3038
helm package ./charts/openstack-hypervisor-operator
@@ -37,4 +45,4 @@ jobs:
3745
run: |
3846
CHART_NAME=openstack-hypervisor-operator
3947
CHART_VERSION=$(grep "version:" ./charts/${CHART_NAME}/Chart.yaml | awk '{print $2}')
40-
helm push "${CHART_NAME}-${CHART_VERSION}.tgz" "oci://ghcr.io/${{ github.repository_owner }}"
48+
helm push "${CHART_NAME}-${CHART_VERSION}.tgz" "oci://ghcr.io/${{ github.repository_owner }}/charts"

0 commit comments

Comments
 (0)