1
0
mirror of https://github.com/pi-hole/docker-pi-hole.git synced 2024-06-25 00:37:47 +02:00

Don't log in or push on pull request

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2023-07-12 19:30:23 +01:00
parent 8325612ce4
commit f739dca323
No known key found for this signature in database

View File

@ -46,6 +46,7 @@ jobs:
development-v6
- name: Login to DockerHub and GitHub Container Registry
if: github.event_name != 'pull_request'
uses: ./.github/actions/login-repo
with:
docker_username: ${{ secrets.DOCKERHUB_USER }}
@ -72,7 +73,7 @@ jobs:
push: true
labels: ${{ steps.meta.outputs.labels }}
outputs: |
type=image,name=${{ env[matrix.registry] }},push-by-digest=true,name-canonical=true,push=true
type=image,name=${{ env[matrix.registry] }},push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }}
- name: Export digests
run: |