Skip to content

Commit 925347b

Browse files
committed
Do not push gcc image unless we are on main branch
1 parent ca963f6 commit 925347b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/gcc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
context: .
8888
file: docker/gcc/Dockerfile.${{ matrix.os.compiler_version }}-${{ matrix.os.release }}
8989
labels: ${{ steps.meta.outputs.labels }}
90-
outputs: type=image,name=${{ env.CONTAINER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
90+
outputs: type=image,name=${{ env.CONTAINER_IMAGE }},push-by-digest=true,name-canonical=true,push=${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
9191
platforms: ${{ matrix.architecture.platform }}
9292
provenance: mode=max
9393
push: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}

0 commit comments

Comments
 (0)