From 5e9f6eafa2bd69a9c7d32a4d4f5bc18cfbf5cb27 Mon Sep 17 00:00:00 2001 From: Prakash Poudel Date: Sat, 11 May 2024 16:28:35 +0545 Subject: [PATCH] Change Login Code --- .github/workflows/build-deploy-container.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-deploy-container.yml b/.github/workflows/build-deploy-container.yml index c85a76715..03f9b2b9e 100644 --- a/.github/workflows/build-deploy-container.yml +++ b/.github/workflows/build-deploy-container.yml @@ -32,8 +32,9 @@ jobs: - name: Log in to the Container registry uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GH_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta @@ -91,8 +92,9 @@ jobs: - name: Log in to the Container registry uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GH_TOKEN }} # Builds and push the Docker image. - name: Build and push Docker image