diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index 371be99d112..bf891f17d64 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -263,44 +263,58 @@ jobs: run: docker compose --file .github/docker-compose.yml down --volumes --remove-orphans - uses: docker/login-action@v3 + if: ${{ github.actor != 'dependabot[bot]' && + (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} with: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PASS }} - name: Push webknossos image - if: ${{ ! startsWith(github.ref, 'refs/tags/') }} + if: ${{ ! startsWith(github.ref, 'refs/tags/') && + github.actor != 'dependabot[bot]' && + (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} uses: ./.github/actions/retry with: run: docker push "scalableminds/webknossos:${{ env.DOCKER_TAG }}" retries: 5 retry_delay_seconds: 10 - name: Push normalized webknossos image + if: ${{ github.actor != 'dependabot[bot]' && + (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} uses: ./.github/actions/retry with: run: docker push "scalableminds/webknossos:${{ env.NORMALIZED_BRANCH }}" retries: 5 retry_delay_seconds: 10 - name: Push webknossos-datastore image - if: ${{ ! startsWith(github.ref, 'refs/tags/') }} + if: ${{ ! startsWith(github.ref, 'refs/tags/') && + github.actor != 'dependabot[bot]' && + (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} uses: ./.github/actions/retry with: run: docker push "scalableminds/webknossos-datastore:${{ env.DOCKER_TAG }}" retries: 5 retry_delay_seconds: 10 - name: Push normalized webknossos-datastore image + if: ${{ github.actor != 'dependabot[bot]' && + (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} uses: ./.github/actions/retry with: run: docker push "scalableminds/webknossos-datastore:${{ env.NORMALIZED_BRANCH }}" retries: 5 retry_delay_seconds: 10 - name: Push webknossos-tracingstore image - if: ${{ ! startsWith(github.ref, 'refs/tags/') }} + if: ${{ ! startsWith(github.ref, 'refs/tags/') && + github.actor != 'dependabot[bot]' && + (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} uses: ./.github/actions/retry with: run: docker push "scalableminds/webknossos-tracingstore:${{ env.DOCKER_TAG }}" retries: 5 retry_delay_seconds: 10 - name: Push normalized webknossos-tracingstore image + if: ${{ github.actor != 'dependabot[bot]' && + (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} uses: ./.github/actions/retry with: run: docker push "scalableminds/webknossos-tracingstore:${{ env.NORMALIZED_BRANCH }}"