From 492403c7fc4d658e38d46fe4f6596e93a9828d59 Mon Sep 17 00:00:00 2001 From: Tarashish Mishra Date: Sun, 8 Sep 2024 18:08:56 +0530 Subject: [PATCH] log into ghcr before pushing images --- .github/workflows/build-publish-docker-helm.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-publish-docker-helm.yaml b/.github/workflows/build-publish-docker-helm.yaml index c0a7edb..a6f005f 100644 --- a/.github/workflows/build-publish-docker-helm.yaml +++ b/.github/workflows/build-publish-docker-helm.yaml @@ -15,6 +15,13 @@ jobs: with: fetch-depth: 0 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Python uses: actions/setup-python@v5 with: @@ -31,8 +38,6 @@ jobs: - name: Run chartpress run: | chartpress --push - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get the version id: get_version