diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index f5ee8ae..358debe 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -46,6 +46,14 @@ jobs: echo ::set-output name=tags_hub::${TAGS_HUB} echo ::set-output name=docker_image_hub::${DOCKER_IMAGE_HUB} + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + registry: docker.io + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Set up QEMU uses: docker/setup-qemu-action@master with: @@ -62,13 +70,6 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - registry: docker.io - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push to GHCR uses: docker/build-push-action@v2 with: