Skip to content

Commit da3111b

Browse files
committed
fix(workflow): fix helm chart release workflow
1 parent b78adf8 commit da3111b

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/deploy_chart.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: azure/setup-helm@v4.3.0
2222
- name: Package helm chart
2323
run: |
24-
helm package chart/cert-manager-webhook-ionos-cloud/
24+
helm package chart/cert-manager-webhook-ionos-cloud/ --app-version ${{ steps.get-latest-tag.outputs.latest-tag }}
2525
- name: Create Release
2626
uses: ncipollo/release-action@v1
2727
with:
@@ -38,13 +38,8 @@ jobs:
3838
- name: switch to helm repo branch and create/update index.yaml
3939
run: |
4040
git checkout helm-repo
41-
# if index.yaml exists and is not empty, we use merge
42-
if [ -a index.yaml ] && [ -s index.yaml ]; then
43-
helm repo index . --merge index.yaml --url https://github.com/ionos-cloud/cert-manager-webhook-ionos-cloud/releases/download/chart-${{ steps.get-latest-tag.outputs.latest-tag }}/
44-
else
45-
helm repo index . --url https://github.com/ionos-cloud/cert-manager-webhook-ionos-cloud/releases/download/chart-${{ steps.get-latest-tag.outputs.latest-tag }}/
46-
fi
47-
41+
helm repo index . --merge index.yaml \
42+
--url https://github.com/ionos-cloud/cert-manager-webhook-ionos-cloud/releases/download/chart-${{ steps.get-latest-tag.outputs.latest-tag }}/
4843
git config user.email "no-reply@ionos-cloud.com";
4944
git config user.name "IONOS-CloudBot";
5045
git add index.yaml

0 commit comments

Comments
 (0)