mirror of https://github.com/docker/docs.git
Fix username mismatch issue in GitHub workflow
Correctly handles mismatch between GitHub and Docker Hub usernames.
This commit is contained in:
parent
6531e8ef21
commit
65587b2239
|
@ -175,7 +175,7 @@ jobs:
|
|||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||
|
||||
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
|
@ -195,7 +195,7 @@ jobs:
|
|||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: ${{ github.repository }}:latest
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.event.repository.name }}:latest
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
Loading…
Reference in New Issue