test
This commit is contained in:
@@ -2,14 +2,42 @@ name: Manual Run Build
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
build_image:
|
# 1. 字符串(默认类型,不写 type 就是 string)
|
||||||
description: "是否编译并推送 Docker 镜像"
|
|
||||||
required: false
|
|
||||||
default: "false"
|
|
||||||
image_tag:
|
image_tag:
|
||||||
description: "自定义镜像 tag"
|
description: "镜像 tag"
|
||||||
|
required: false
|
||||||
|
default: "latest"
|
||||||
|
|
||||||
|
# 2. 布尔
|
||||||
|
build_image:
|
||||||
|
description: "是否打镜像"
|
||||||
|
type: boolean
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
|
||||||
|
# 3. 数字
|
||||||
|
timeout_min:
|
||||||
|
description: "超时分钟数"
|
||||||
|
type: number
|
||||||
|
required: false
|
||||||
|
default: 10
|
||||||
|
|
||||||
|
# 4. 下拉选择(单选)
|
||||||
|
env_name:
|
||||||
|
description: "部署环境"
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- dev
|
||||||
|
- test
|
||||||
|
- prod
|
||||||
|
required: true
|
||||||
|
default: dev
|
||||||
|
|
||||||
|
# 5. 环境(关联 Gitea 的 Environments 功能)
|
||||||
|
deploy_env:
|
||||||
|
description: "目标环境"
|
||||||
|
type: environment
|
||||||
required: false
|
required: false
|
||||||
default: "manual"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user