极狐GitLab 正式推出面向 GitLab 老旧版本(12.x、13.x、14.x、15.x 等)免费用户的专业升级服务,点击查看详情

返回列表 发布新帖

SpringCloud 多模块如何做CI/CD

767 1
发表于 2024-4-15 11:13:15 | 显示全部楼层 阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
公司目前框架是SpringCloud ,在一个项目中 多模块集成如下,如何设置CI/CD 自动化构建流水,减少打包时间。

wncloud-vaccine-reservation  
├── wncloud-vaccine-reservation-gateway         // 网关模块 [8080]
├── wncloud-vaccine-reservation-auth            // 认证中心 [9200]
├── wncloud-vaccine-reservation-api             // 接口模块
│       └── wncloud-vaccine-reservation-api-system                          // 系统接口
├── wncloud-vaccine-reservation-common          // 通用模块
│       └── wncloud-vaccine-reservation-common-core                         // 核心模块
│       └── wncloud-vaccine-reservation-common-datascope                    // 权限范围
│       └── wncloud-vaccine-reservation-common-datasource                   // 多数据源
│       └── wncloud-vaccine-reservation-common-log                          // 日志记录
│       └── wncloud-vaccine-reservation-common-redis                        // 缓存服务
├── wncloud-vaccine-reservation-modules         // 业务模块
│       └── wncloud-vaccine-reservation-system                              // 系统模块 [9201]
│       └── wncloud-vaccine-reservation-gen                                 // 代码生成 [9202]
│       └── wncloud-vaccine-reservation-job                                 // 定时任务 [9203]
│       └── wncloud-vaccine-reservation-file                                // 文件服务 [9300]
├──pom.xml                // 公共依赖


回复

使用道具 举报

评论1

wangkaixuanLv.7 发表于 2024-4-29 09:49:12 | 显示全部楼层
减少打包时间 可以使用gitlab的cache(官方文档:https://docs.gitlab.com/ee/ci/caching/),同时使用artifact(https://docs.gitlab.com/ee/ci/jobs/job_artifacts.html)可以在构建阶段减少时间。
回复

使用道具 举报

意见建议

Email:forum@gitlab.cn
  • 关注公众号
  • 添加专业顾问
Copyright © 2001-2024 极狐GitLab论坛 版权所有 All Rights Reserved. 鄂ICP备2021008419号-1|鄂公网安备42018502006137号
关灯 快速发帖
扫一扫添加专业顾问
返回顶部
快速回复 返回顶部 返回列表