diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b22a53b..4ff7966 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -15,6 +15,7 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2 + if: ${{ github.event_name == 'push' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }}