Merge pull request #309 from yokowu/feat-ci

feat: scanner 改为手动执行
This commit is contained in:
Yoko
2025-08-27 15:24:11 +08:00
committed by GitHub
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