From 56b5c67444015b9c4e3355a5afa518801493dca1 Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Sun, 8 Dec 2024 17:08:49 +0100 Subject: [PATCH] fix: login to ghcr.io at the beginning of job Signed-off-by: Ludovic Ortega --- .github/workflows/helm.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index 8f67f7d02..3447cd376 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -29,6 +29,13 @@ jobs: - name: Install Oras uses: oras-project/setup-oras@v1 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Package helm charts run: | mkdir -p ./.cr-release-packages @@ -91,13 +98,6 @@ jobs: name: artifacts path: .cr-release-packages/ - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Push charts to GHCR env: COSIGN_YES: true