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 211a4f5 commit e3f17e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_helm_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
- name: Auth to Google Cloud
uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ vars.CICD_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.CICD_SERVICE_ACCOUNT_EMAIL }}
workload_identity_provider: ${{ env.CICD_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ env.CICD_SERVICE_ACCOUNT_EMAIL }}

- name: Get GKE credentials to access the cluster
uses: google-github-actions/get-gke-credentials@v2
Expand Down
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: ${{ vars.HELM_VERSION }}
version: ${{ env.HELM_VERSION }}

- name: Login with Helm
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ vars.HELM_REGISTRY }} --username ${{ github.repository_owner }} --password-stdin
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ env.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://${{ vars.HELM_REGISTRY }}"
helm push "fairspace-${{ env.VERSION }}.tgz" "oci://${{ env.HELM_REGISTRY }}"
echo "Pushed package to repository"
- name: Clean up
Expand Down

0 comments on commit e3f17e4

Please sign in to comment.