Skip to content

Commit c2dc065

Browse files
author
Artem Bondarenko
committed
build: make docker push conditional
1 parent 9fd4beb commit c2dc065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ jobs:
5757
uses: docker/build-push-action@v4
5858
with:
5959
context: ./
60-
push: true
60+
push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
6161
tags: ${{ steps.meta.outputs.tags }}
6262
file: Dockerfile.${{ matrix.target }}

0 commit comments

Comments
 (0)