From 93e7aca14690b3c6af28a3bdeabe319ee035aa2c Mon Sep 17 00:00:00 2001 From: Muneeb Aijaz <43588696+MuneebAijaz@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:43:04 +0500 Subject: [PATCH] Update push-helm-chart.yaml --- .github/workflows/push-helm-chart.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push-helm-chart.yaml b/.github/workflows/push-helm-chart.yaml index d87cfa779..507a083ab 100644 --- a/.github/workflows/push-helm-chart.yaml +++ b/.github/workflows/push-helm-chart.yaml @@ -67,10 +67,12 @@ jobs: echo "Helm Chart Version wasnt updated" exit 1 - # Publish helm chart - - name: Login to ghcr via helm - run: | - echo ${{secrets.GITHUB_TOKEN}} | helm registry login ghcr.io/stakater --username stakater-user --password-stdin + - name: Login to GHCR Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io/stakater + username: ${{ secrets.GHCR_USERNAME }} + password: ${{ secrets.GHCR_TOKEN }} - name: Publish Helm chart to ghcr.io run: | @@ -84,7 +86,7 @@ jobs: branch: master repository: stakater-charts target_dir: docs - token: ${{ secrets.STAKATER_GITHUB_TOKEN }} + token: ${{ secrets.PUBLISH_TOKEN }} charts_dir: deployments/kubernetes/chart/ charts_url: ${{ env.HELM_REGISTRY_URL }} owner: stakater