Skip to content

Commit 8e53960

Browse files
committed
CI: build docker on pull request as well
1 parent ecb3997 commit 8e53960

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- main
66
tags:
77
- "v*"
8+
pull_request:
9+
branches:
10+
- main
811

912
jobs:
1013
docker-build:
@@ -30,6 +33,6 @@ jobs:
3033
- uses: docker/build-push-action@v6
3134
with:
3235
context: .
33-
push: true
36+
push: ${{ github.event_name != 'pull_request' }}
3437
tags: ${{ steps.meta.outputs.tags }}
3538
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)