Skip to content

Commit 7e27fb5

Browse files
committed
ci: build docker image for dependency updates
This resolves a blind spot in PR tests without excessive builds
1 parent 8726804 commit 7e27fb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-publish-image.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build Docker image
22

33
on:
4+
pull_request:
45
push:
56
branches:
67
- main
@@ -12,6 +13,7 @@ env:
1213

1314
jobs:
1415
build-image:
16+
if: github.event_name == 'push' || contains(github.event.*.labels.*.name, 'dependencies')
1517
runs-on: ubuntu-latest
1618
strategy:
1719
fail-fast: false
@@ -109,7 +111,7 @@ jobs:
109111
retention-days: 1
110112

111113
merge-and-push-image:
112-
if: github.repository_owner == 'onekey-sec'
114+
if: github.repository_owner == 'onekey-sec' && github.event_name == 'push'
113115
runs-on: ubuntu-latest
114116
needs:
115117
- build-image

0 commit comments

Comments
 (0)