Skip to content

Commit daba8fa

Browse files
authored
Merge pull request chaitin#309 from yokowu/feat-ci
feat: scanner 改为手动执行
2 parents e54612e + 33789ca commit daba8fa

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/backend-ci-cd.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ on:
1313
paths:
1414
- 'backend/**'
1515
- '.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'
1626

1727
env:
1828
REGISTRY: chaitin-registry.cn-hangzhou.cr.aliyuncs.com/monkeycode
@@ -134,6 +144,7 @@ jobs:
134144
cache-to: type=gha,mode=max
135145

136146
- name: Build and push multi-arch scanner image
147+
if: github.event.inputs.build_scanner == 'true'
137148
uses: docker/build-push-action@v5
138149
with:
139150
context: ./backend

backend/pro

Submodule pro updated from b36b467 to e856e35

0 commit comments

Comments
 (0)