Skip to content

Commit 4283ae3

Browse files
committed
Update Docker publish workflow to use Docker Hub token for authentication
1 parent 690e700 commit 4283ae3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ jobs:
6060
if: github.event_name != 'pull_request'
6161
uses: docker/login-action@v3
6262
with:
63-
username: ${{ secrets.DOCKER_USERNAME }}
64-
password: ${{ secrets.DOCKER_PASSWORD }}
63+
username: ${{ vars.DOCKERHUB_USERNAME }}
64+
password: ${{ secrets.DOCKERHUB_TOKEN }}
6565

6666
- name: Login to GHCR
6767
if: github.event_name != 'pull_request'
@@ -116,8 +116,8 @@ jobs:
116116
if: github.event_name != 'pull_request'
117117
uses: docker/login-action@v3
118118
with:
119-
username: ${{ secrets.DOCKER_USERNAME }}
120-
password: ${{ secrets.DOCKER_PASSWORD }}
119+
username: ${{ vars.DOCKERHUB_USERNAME }}
120+
password: ${{ secrets.DOCKERHUB_TOKEN }}
121121

122122
- name: Login to GHCR
123123
if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)