Skip to content

Commit ba24967

Browse files
committed
Temporarily restrict forks from triggering docker push
1 parent 55e8393 commit ba24967

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build-image-on-pr.yml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
echo "IMAGE_TAGGED_NAME=$IMAGE_TAGGED_NAME" >> "$GITHUB_ENV"
3535
3636
- name: Push Docker image
37+
if: github.event.pull_request.head.repo.full_name == github.repository
3738
env:
3839
REGISTRY_USERNAME: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
3940
REGISTRY_PASSWORD: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}

0 commit comments

Comments
 (0)