Skip to content

Commit 9d2afcb

Browse files
committed
Update docker-publish-image.yml
Signed-off-by: Md Imran <[email protected]>
1 parent 475a18a commit 9d2afcb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/docker-publish-image.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ jobs:
5151

5252
# Login against a Docker registry except on PR
5353
# https://github.com/docker/login-action
54-
- name: Log into registry ${{ env.REGISTRY }}
54+
- name: Login to Docker Hub
5555
if: github.event_name != 'pull_request'
56-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
56+
uses: docker/login-action@v3
5757
with:
58-
registry: ${{ env.REGISTRY }}
59-
username: ${{ github.actor }}
60-
password: ${{ secrets.GITHUB_TOKEN }}
58+
username: ${{ vars.DOCKERHUB_USERNAME }}
59+
password: ${{ secrets.DOCKERHUB_TOKEN }}
6160

6261
# Extract metadata (tags, labels) for Docker
6362
# https://github.com/docker/metadata-action

0 commit comments

Comments
 (0)