From 147b939b005beb7c7de3fe18903be248c803853d Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Tue, 26 Oct 2021 21:27:48 -0700 Subject: [PATCH] add step to login to docker hub --- .github/workflows/docker-hub-build-push.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker-hub-build-push.yml b/.github/workflows/docker-hub-build-push.yml index 7c0fdc5..2a7f0d2 100644 --- a/.github/workflows/docker-hub-build-push.yml +++ b/.github/workflows/docker-hub-build-push.yml @@ -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 \