From 38ab09a5af780538b77157dca4f70c1752b8bd2f Mon Sep 17 00:00:00 2001 From: MuneebAijaz Date: Wed, 20 Nov 2024 13:28:13 +0500 Subject: [PATCH 1/3] Fix for helm chart push tokens --- .github/workflows/push-helm-chart.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push-helm-chart.yaml b/.github/workflows/push-helm-chart.yaml index 507a083ab..adbc4b2a8 100644 --- a/.github/workflows/push-helm-chart.yaml +++ b/.github/workflows/push-helm-chart.yaml @@ -70,9 +70,9 @@ jobs: - name: Login to GHCR Registry uses: docker/login-action@v2 with: - registry: ghcr.io/stakater - username: ${{ secrets.GHCR_USERNAME }} - password: ${{ secrets.GHCR_TOKEN }} + registry: ${{env.REGISTRY}} + username: stakater-user + password: ${{secrets.GITHUB_TOKEN}} - name: Publish Helm chart to ghcr.io run: | @@ -86,7 +86,7 @@ jobs: branch: master repository: stakater-charts target_dir: docs - token: ${{ secrets.PUBLISH_TOKEN }} + token: ${{ secrets.GHCR_TOKEN }} charts_dir: deployments/kubernetes/chart/ charts_url: ${{ env.HELM_REGISTRY_URL }} owner: stakater From bf6360752d04182439f3e3d5c62e68e3924dfad2 Mon Sep 17 00:00:00 2001 From: MuneebAijaz Date: Wed, 20 Nov 2024 13:28:50 +0500 Subject: [PATCH 2/3] Fix for helm chart push tokens --- .github/workflows/push-helm-chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-helm-chart.yaml b/.github/workflows/push-helm-chart.yaml index adbc4b2a8..da068359f 100644 --- a/.github/workflows/push-helm-chart.yaml +++ b/.github/workflows/push-helm-chart.yaml @@ -70,9 +70,9 @@ jobs: - name: Login to GHCR Registry uses: docker/login-action@v2 with: - registry: ${{env.REGISTRY}} + registry: ${{ env.REGISTRY }} username: stakater-user - password: ${{secrets.GITHUB_TOKEN}} + password: ${{ secrets.GITHUB_TOKEN }} - name: Publish Helm chart to ghcr.io run: | From a39100ab359548d378a416bd41d6a79775928948 Mon Sep 17 00:00:00 2001 From: MuneebAijaz Date: Wed, 20 Nov 2024 13:30:01 +0500 Subject: [PATCH 3/3] Fix for helm chart push tokens --- .github/workflows/push-helm-chart.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/push-helm-chart.yaml b/.github/workflows/push-helm-chart.yaml index da068359f..aa5fee0fa 100644 --- a/.github/workflows/push-helm-chart.yaml +++ b/.github/workflows/push-helm-chart.yaml @@ -8,6 +8,7 @@ on: - master paths: - 'deployments/kubernetes/chart/reloader/**' + - '.github/workflows/push-helm-chart.yaml' env: HELM_REGISTRY_URL: "https://stakater.github.io/stakater-charts"