Skip to content

Commit 2dc6049

Browse files
KingPinKingPin
authored andcommitted
ci: restrict Docker CI push trigger to main to avoid duplicate runs
1 parent d520547 commit 2dc6049

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/docker-ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ name: Docker CI (v1 + v2)
22

33
on:
44
push:
5+
# Only run full CI on pushes to main (publishes/metrics). Running on
6+
# every branch push plus pull_request creates duplicate runs when a PR
7+
# receives new commits because GitHub emits both push and pull_request
8+
# events for the same push. Restrict push to main to avoid that.
59
branches:
6-
- '**'
10+
- 'main'
711
paths-ignore:
812
- '**.md'
913
- 'docs/**'

0 commit comments

Comments
 (0)