mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-28 12:11:04 +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:
parent
8325612ce4
commit
f739dca323
3
.github/workflows/test-and-build.yml
vendored
3
.github/workflows/test-and-build.yml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Reference in New Issue
Block a user