Skip to content

Commit

Permalink
fix login auth
Browse files Browse the repository at this point in the history
  • Loading branch information
bap2pecs committed Oct 16, 2024
1 parent 79eb52d commit aa50a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
# Use docker.io for Docker Hub if empty
REGISTRY: docker.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository_owner }}/${{ github.repository_name }}
IMAGE_NAME: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.repository_name }}

jobs:
build:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Log into Docker Hub
uses: docker/login-action@v3
with:
username: ${{ github.repository_owner }}
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

# Extract metadata (tags, labels) for Docker
Expand Down

0 comments on commit aa50a25

Please sign in to comment.