Skip to content

Commit b86e1a1

Browse files
author
Ware, Joseph (DLSLtd,RAL,LSCI)
committed
Fix Helm action
1 parent 842fd63 commit b86e1a1

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

template/{% if git_platform=="github.com" %}.github{% endif %}/workflows/{% if helm %}_helm.yml{% endif %}

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
env:
2+
CHART_NAME: {{ repo_name }}
3+
{% raw %}
4+
15
on:
26
workflow_call:
37

@@ -20,6 +24,9 @@ jobs:
2024
uses: Azure/setup-helm@v4
2125
id: install
2226

27+
- name: Lint Helm chart
28+
run: helm lint helm/{{ repo_name }}
29+
2330
- name: Log in to GitHub Container Registry
2431
if: github.ref_type == 'tag'
2532
run: |
@@ -28,6 +35,7 @@ jobs:
2835
- name: package chart and push it
2936
if: github.ref_type == 'tag'
3037
run: |
31-
helm dependencies update helm/{{ repo_name }}
32-
helm package helm/{{ repo_name }} {% raw %}--version ${{ steps.meta.outputs.version }} --app-version ${{ steps.meta.outputs.version }}{% endraw %} -d /tmp/
33-
helm push /tmp/{{ repo_name }}-{% raw %}${{ steps.meta.outputs.version }}.tgz oci://ghcr.io/${{ github.repository_owner }}{% endraw %}/charts
38+
helm dependencies update helm/${{ env.CHART_NAME }}
39+
helm package helm/${{ env.CHART_NAME }} --version ${{ steps.meta.outputs.version }} --app-version ${{ steps.meta.outputs.version }} -d /tmp/
40+
helm push /tmp/${{ env.CHART_NAME }}-${{ steps.meta.outputs.version }}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts
41+
{% endraw %}

0 commit comments

Comments
 (0)