Skip to content

Commit 1057b18

Browse files
authored
Update docker-publish.yml
1 parent 989a200 commit 1057b18

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/docker-publish.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ jobs:
5353

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

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

0 commit comments

Comments
 (0)