From adbd9b9318c67dd9b1329e766f97e4d88273140b Mon Sep 17 00:00:00 2001 From: Rob Kooper Date: Sun, 14 Jul 2024 09:44:07 -0500 Subject: [PATCH] don't push if dependabot --- .github/workflows/docker.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 7af7f321..f9e274bd 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -55,12 +55,14 @@ jobs: # login to registries - name: Login to DockerHub + if: github.actor != 'dependabot[bot]' uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Login to GitHub Container Registry + if: github.actor != 'dependabot[bot]' uses: docker/login-action@v3 with: registry: ghcr.io @@ -72,8 +74,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - #push: ${{ github.event_name != 'pull_request' }} - push: true + push: ${{ github.actor != 'dependabot[bot]' }} platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}