Commit Graph

4 Commits

Author SHA1 Message Date
n72595987@gmail.com
9475e164af 修复 CI 构建:更正 martial-tool 克隆路径
Some checks failed
continuous-integration/drone/push Build is failing
问题:
- Drone 的工作目录是 /drone/src(当前仓库)
- 之前尝试 cd /drone 会失败
- 导致 martial-tool 克隆到错误位置

解决方案:
- 使用 cd /drone/src/.. 导航到父目录
- 在 /drone/src/../martial-tool 位置克隆框架代码
- 编译时使用相同的路径 /drone/src/../martial-tool

路径结构:
/drone/
  ├── src/              # martial-master (当前仓库)
  └── martial-tool/     # BladeX 框架 (克隆的)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 18:00:32 +08:00
n72595987@gmail.com
ad1f3df70b 修复 CI 构建:添加克隆 BladeX 框架步骤
Some checks failed
continuous-integration/drone/push Build is failing
问题:
- Drone CI 只会 clone 当前仓库,不会自动获取 martial-tool
- 导致编译框架依赖步骤失败

解决方案:
- 添加步骤0:使用 alpine/git 镜像克隆 martial-tool 代码
- 将框架代码 clone 到 /drone/martial-tool
- 编译步骤使用正确的路径 /drone/martial-tool

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 17:52:47 +08:00
n72595987@gmail.com
9d37f3f73d 修复 Drone CI 配置:移除 host volumes 以解决 untrusted 仓库问题
Some checks failed
continuous-integration/drone/push Build is failing
- 移除 maven-cache volume 挂载
- 同一构建内的步骤仍可共享 Maven 本地仓库
- BladeX 框架编译结果可被后端编译步骤复用

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 17:45:28 +08:00
n72595987@gmail.com
5ce4c4601d 添加 Drone CI/CD 自动化部署配置
Some checks failed
continuous-integration/drone/push Build encountered an error
1. 新增 .drone.yml 配置文件
   - 自动编译 BladeX 框架依赖
   - 自动编译后端项目并打包
   - 构建 Docker 镜像
   - 自动部署到生产服务器
   - 健康检查验证部署成功

2. 新增 Dockerfile
   - 基于 eclipse-temurin:17-jre 轻量镜像
   - 配置 JVM 参数优化内存使用
   - 添加健康检查端点
   - 支持多环境配置(dev/test/prod)

现在推送代码到 main 分支后,Drone CI 会自动:
- 编译项目
- 构建 Docker 镜像
- 部署到 154.30.6.21 服务器
- 执行健康检查

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 17:04:39 +08:00