We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcfdd3c commit 33789caCopy full SHA for 33789ca
.github/workflows/backend-ci-cd.yml
@@ -13,6 +13,16 @@ on:
13
paths:
14
- 'backend/**'
15
- '.github/workflows/backend-ci-cd.yml'
16
+ workflow_dispatch: # 添加手动触发
17
+ inputs:
18
+ build_scanner:
19
+ description: '是否构建 Scanner 镜像'
20
+ required: false
21
+ default: 'false'
22
+ type: choice
23
+ options:
24
+ - 'true'
25
+ - 'false'
26
27
env:
28
REGISTRY: chaitin-registry.cn-hangzhou.cr.aliyuncs.com/monkeycode
@@ -134,6 +144,7 @@ jobs:
134
144
cache-to: type=gha,mode=max
135
145
136
146
- name: Build and push multi-arch scanner image
147
+ if: github.event.inputs.build_scanner == 'true'
137
148
uses: docker/build-push-action@v5
138
149
with:
139
150
context: ./backend
backend/pro
0 commit comments