Skip Docker push for Dependabot PRs

This commit is contained in:
Gabe Cook 2023-03-25 01:02:28 -05:00
parent 048f12948d
commit 39ab2eb10f
No known key found for this signature in database
GPG Key ID: 3197318BDE319B8D

View File

@ -69,11 +69,13 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
if: github.secret_source == 'Actions'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: github.secret_source == 'Actions'
with:
registry: ghcr.io
username: ${{ github.actor }}
@ -100,7 +102,7 @@ jobs:
context: .
file: ${{ matrix.dockerfile }}
pull: true
push: true
push: ${{ github.secret_source == 'Actions' }}
platforms: ${{ matrix.platforms }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}