From 77e4dc451644bdb240afca93170ff09c5769b4bc Mon Sep 17 00:00:00 2001 From: Keyvan Ebrahimpour Date: Fri, 11 Apr 2025 20:52:19 +0000 Subject: [PATCH] Replaced GitHub token login with Personal Access Token (GHCR_PAT) to allow pushing images to the private GitHub Container Registry (ghcr.io). --- .github/workflows/build-and-deploy.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-deploy.yaml b/.github/workflows/build-and-deploy.yaml index 6601b0a..cf6f3be 100644 --- a/.github/workflows/build-and-deploy.yaml +++ b/.github/workflows/build-and-deploy.yaml @@ -29,11 +29,10 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push Docker image + - name: Build and Push Docker Image run: | - IMAGE_NAME="ghcr.io/${{ github.repository }}:$VERSION" - docker build -t $IMAGE_NAME . - docker push $IMAGE_NAME + docker build -t ghcr.io/${{ github.repository }}:$VERSION . + docker push ghcr.io/${{ github.repository }}:$VERSION - name: Set up kubeconfig from secret run: |