Skip to content

Commit 9a5d78b

Browse files
committed
ci: only push if is not a fork
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent fe6219b commit 9a5d78b

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
@@ -79,6 +79,6 @@ jobs:
7979
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6
8080
with:
8181
context: ./
82-
push: true
82+
push: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
8383
tags: ${{ steps.meta.outputs.tags }}
8484
file: Dockerfile.${{ matrix.target }}

0 commit comments

Comments
 (0)