feat: scanner 改为手动执行

This commit is contained in:
yokowu
2025-08-27 12:02:08 +08:00
parent dcfdd3c705
commit 33789caac6
2 changed files with 12 additions and 1 deletions

View File

@@ -13,6 +13,16 @@ on:
paths:
- 'backend/**'
- '.github/workflows/backend-ci-cd.yml'
workflow_dispatch: # 添加手动触发
inputs:
build_scanner:
description: '是否构建 Scanner 镜像'
required: false
default: 'false'
type: choice
options:
- 'true'
- 'false'
env:
REGISTRY: chaitin-registry.cn-hangzhou.cr.aliyuncs.com/monkeycode
@@ -134,6 +144,7 @@ jobs:
cache-to: type=gha,mode=max
- name: Build and push multi-arch scanner image
if: github.event.inputs.build_scanner == 'true'
uses: docker/build-push-action@v5
with:
context: ./backend