Skip to content

Commit

Permalink
don't push if dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed Jul 14, 2024
1 parent 52ff25e commit adbd9b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit adbd9b9

Please sign in to comment.