diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db15e4d7f..fb8bb3e4f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} - name: Login to Github Packages uses: docker/login-action@v3 @@ -48,7 +48,7 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.DOCKER_TOKEN }} - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -57,7 +57,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - push: ${{ !github.event.pull_request.head.repo.fork }} + push: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} file: ./Dockerfile tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}