From 4b67c7d4279a1601c4accc21795763cd80ae370b Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Wed, 24 Apr 2024 02:08:39 +0500 Subject: [PATCH] Update login action --- .github/workflows/docker_image.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker_image.yml b/.github/workflows/docker_image.yml index bcdf24c..d65b50b 100644 --- a/.github/workflows/docker_image.yml +++ b/.github/workflows/docker_image.yml @@ -12,10 +12,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to GHCR - uses: docker/login-action@v2 + uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c with: - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push id: docker_build uses: docker/build-push-action@v3