Skip to content

Commit aa50a25

Browse files
committed
fix login auth
1 parent 79eb52d commit aa50a25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
# Use docker.io for Docker Hub if empty
1616
REGISTRY: docker.io
1717
# github.repository as <account>/<repo>
18-
IMAGE_NAME: ${{ github.repository_owner }}/${{ github.repository_name }}
18+
IMAGE_NAME: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.repository_name }}
1919

2020
jobs:
2121
build:
@@ -48,7 +48,7 @@ jobs:
4848
- name: Log into Docker Hub
4949
uses: docker/login-action@v3
5050
with:
51-
username: ${{ github.repository_owner }}
51+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
5252
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
5353

5454
# Extract metadata (tags, labels) for Docker

0 commit comments

Comments
 (0)