Skip to content

Commit 352c8c4

Browse files
Check ci image build on PR
1 parent 67e8129 commit 352c8c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci-image.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Publish Docker CI image
22
on:
33
workflow_dispatch: {}
4+
pull_request:
5+
branches: [main]
46
push:
57
branches: [main]
68

@@ -39,5 +41,5 @@ jobs:
3941
platforms: linux/amd64,linux/arm64
4042
context: .
4143
file: ${{ matrix.dockerfile }}
42-
push: true
44+
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
4345
tags: ${{ join(matrix.tags, ',') }}

0 commit comments

Comments
 (0)