We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8726804 + 68d9c0a commit 748841bCopy full SHA for 748841b
.github/workflows/build-publish-image.yml
@@ -1,6 +1,7 @@
1
name: Build Docker image
2
3
on:
4
+ pull_request:
5
push:
6
branches:
7
- main
@@ -12,6 +13,7 @@ env:
12
13
14
jobs:
15
build-image:
16
+ if: github.event_name == 'push' || contains(github.event.*.labels.*.name, 'dependencies')
17
runs-on: ubuntu-latest
18
strategy:
19
fail-fast: false
@@ -49,6 +51,7 @@ jobs:
49
51
type=sha
50
52
53
- name: Set up QEMU
54
+ if: matrix.platform != 'linux/amd64'
55
uses: docker/setup-qemu-action@v3
56
57
- name: Set up Docker Buildx
@@ -109,7 +112,7 @@ jobs:
109
112
retention-days: 1
110
113
111
114
merge-and-push-image:
- if: github.repository_owner == 'onekey-sec'
115
+ if: github.repository_owner == 'onekey-sec' && github.event_name == 'push'
116
117
needs:
118
- build-image
0 commit comments