diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c53bdaae7..2e165eacb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,6 +93,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Login to DockerHub + if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true') }} uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} @@ -136,6 +137,7 @@ jobs: cache: true - name: Login to DockerHub + if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true') }} uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }}