Skip to content

Commit

Permalink
Added Github Action to deploy Helm Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreenwood committed Mar 29, 2024
1 parent e3f17e4 commit 0d93a90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/package_and_push_helm_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
- name: Setup Helm
uses: azure/[email protected]
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: |
Expand All @@ -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
Expand Down

0 comments on commit 0d93a90

Please sign in to comment.