Skip to content

Commit

Permalink
Change Login Code
Browse files Browse the repository at this point in the history
  • Loading branch information
poudelprakash committed May 11, 2024
1 parent ec14917 commit 5e9f6ea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-deploy-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5e9f6ea

Please sign in to comment.