From 0d93a903f3c033ff3b7c54e5a802c2866333213d Mon Sep 17 00:00:00 2001 From: anton Date: Fri, 29 Mar 2024 22:53:31 +0100 Subject: [PATCH] Added Github Action to deploy Helm Chart --- .github/workflows/package_and_push_helm_chart.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/package_and_push_helm_chart.yaml b/.github/workflows/package_and_push_helm_chart.yaml index bb605c7a8..cc246c23b 100644 --- a/.github/workflows/package_and_push_helm_chart.yaml +++ b/.github/workflows/package_and_push_helm_chart.yaml @@ -29,11 +29,11 @@ jobs: - name: Setup Helm uses: azure/setup-helm@v4.1.0 with: - version: ${{ env.HELM_VERSION }} + version: ${{ vars.HELM_VERSION }} - name: Login with Helm run: | - echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ env.HELM_REGISTRY }} --username ${{ github.repository_owner }} --password-stdin + echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ vars.HELM_REGISTRY }} --username ${{ github.repository_owner }} --password-stdin - name: Prepare version run: | @@ -46,7 +46,7 @@ jobs: - name: Push Helm chart to repository run: | helm package "charts/fairspace" --version ${{ env.VERSION }} - helm push "fairspace-${{ env.VERSION }}.tgz" "oci://${{ env.HELM_REGISTRY }}" + helm push "fairspace-${{ env.VERSION }}.tgz" "oci://${{ vars.HELM_REGISTRY }}" echo "Pushed package to repository" - name: Clean up