Skip to content

Commit

Permalink
add step to login to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
shizunge authored Oct 27, 2021
1 parent d922f55 commit 147b939
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-hub-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
Expand Down

0 comments on commit 147b939

Please sign in to comment.