Skip to content

Commit 383a881

Browse files
committed
fix: fix CI that want to push on PR
1 parent 7a5b66c commit 383a881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
3535
- uses: docker/build-push-action@v6
3636
with:
37-
push: ${{ github.event_name != 'pull_request' }}
37+
push: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
3838
context: .
3939
tags: ${{ steps.metadata.outputs.tags }}
4040
labels: ${{ steps.metadata.outputs.labels }}

0 commit comments

Comments
 (0)