From ff9154bbcdad1ab59724392a2cab4e5790cc3893 Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Tue, 19 Sep 2023 10:32:46 +0200 Subject: [PATCH] ci: disable docker push if dependabot --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ccefcd..cd16b1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -114,13 +114,13 @@ jobs: scala --version && sbt about - name: Log in to DockerHub - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Rebuild and push ${{ matrix.platforms }} docker images - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' uses: docker/build-push-action@v5 with: context: ${{ matrix.dockerContext }}