diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8aa84fae..62747672 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -47,7 +47,7 @@ jobs: uses: docker/setup-qemu-action@v3 - name: Login to Docker Hub - if: github.event_name != 'pull_request' + if: ${{ (github.event_name != 'pull_request') && (github.repository == 'cowrie/cowrie') }} uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} @@ -71,7 +71,7 @@ jobs: docker run -d --rm cowrie:test - name: Build and push - if: github.event_name != 'pull_request' + if: ${{ (github.event_name != 'pull_request') && (github.repository == 'cowrie/cowrie') }} uses: docker/build-push-action@v5 with: file: docker/Dockerfile