mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
feat(stack): 新增 stack 模式管理功能
- 新增 `php think admin:stack:mode` 命令,支持 list/use/current/rollback 操作 - 新增 StackModeService 服务,负责模式切换、备份与回滚逻辑 - 在 source/stack/ 目录下添加 default、full、base-build 三种模式的配置文件 - 更新 UlthonAdminService 以注册新的命令行工具
This commit is contained in:
22
source/stack/stack.json
Normal file
22
source/stack/stack.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"default_mode": "default",
|
||||
"managed_files": [
|
||||
"Dockerfile",
|
||||
"docker-compose.yaml",
|
||||
".gitea/workflows/build-and-deploy.yml"
|
||||
],
|
||||
"modes": {
|
||||
"default": {
|
||||
"description": "代码库默认行为基线",
|
||||
"author_only": false
|
||||
},
|
||||
"full": {
|
||||
"description": "全量构建模式(兼容历史行为)",
|
||||
"author_only": false
|
||||
},
|
||||
"base-build": {
|
||||
"description": "基础镜像 + 应用构建模式",
|
||||
"author_only": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user