build(drone): 更新 Drone 构建配置和 Docker 部署文件
- 修改 .drone.yml 中的 Maven 构建命令,使用新的模块路径 - 更新模块路径为 yudao-module-system/yudao-module-system-biz 和 yudao-module-infra/yudao-module-infra-biz - 修改 Docker 镜像名称,使用 yudao 前缀替代 ruoyi - 更新 docker-compose.yml 中的服务定义,使用新的镜像名称和容器名称
This commit is contained in:
parent
e720e17d76
commit
a8c3996cfa
14
.drone.yml
14
.drone.yml
|
@ -12,7 +12,7 @@ steps:
|
||||||
- name: build-output
|
- name: build-output
|
||||||
path: /home/app/build
|
path: /home/app/build
|
||||||
commands:
|
commands:
|
||||||
- mvn clean package -DskipTests=true -pl yudao-gateway,ruoyi-modules-system,yudao-module-infra -am
|
- mvn clean package -DskipTests=true -pl yudao-gateway,yudao-module-system/yudao-module-system-biz,yudao-module-infra/yudao-module-infra-biz -am
|
||||||
|
|
||||||
- name: build-jar
|
- name: build-jar
|
||||||
image: alpine
|
image: alpine
|
||||||
|
@ -21,9 +21,9 @@ steps:
|
||||||
path: /home/app/build
|
path: /home/app/build
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p /home/app/build/{gateway,system,infra}
|
- mkdir -p /home/app/build/{gateway,system,infra}
|
||||||
- cp yudao-gateway/target/*.jar /home/app/build/gateway/app.jar
|
- cp yudao-gateway/target/yudao-gateway.jar /home/app/build/gateway/app.jar
|
||||||
- cp yudao-modules-system/target/*.jar /home/app/build/system/app.jar
|
- cp yudao-module-system/yudao-module-system-biz/target/yudao-module-system-biz.jar /home/app/build/system/app.jar
|
||||||
- cp yudao-module-infra/target/*.jar /home/app/build/file/app.jar
|
- cp yudao-module-infra/yudao-module-infra-biz/target//yudao-module-infra-biz.jar /home/app/build/infra/app.jar
|
||||||
- cp Dockerfile /home/app/build/
|
- cp Dockerfile /home/app/build/
|
||||||
|
|
||||||
- name: build-docker
|
- name: build-docker
|
||||||
|
@ -35,9 +35,9 @@ steps:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- cd /home/app/build
|
- cd /home/app/build
|
||||||
- cd gateway && docker build -t ruoyi-gateway:${APP_VERSION} -f ../Dockerfile .
|
- cd gateway && docker build -t yudao-gateway:${APP_VERSION} -f ../Dockerfile .
|
||||||
- cd ../system && docker build -t ruoyi-system:${APP_VERSION} -f ../Dockerfile .
|
- cd ../system && docker build -t yudao-module-system:${APP_VERSION} -f ../Dockerfile .
|
||||||
- cd ../infra && docker build -t ruoyi-infra:${APP_VERSION} -f ../Dockerfile .
|
- cd ../infra && docker build -t yudao-module-infra:${APP_VERSION} -f ../Dockerfile .
|
||||||
|
|
||||||
- name: deploy-with-compose
|
- name: deploy-with-compose
|
||||||
image: docker/compose:1.29.2
|
image: docker/compose:1.29.2
|
||||||
|
|
|
@ -2,24 +2,24 @@ version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gateway:
|
gateway:
|
||||||
image: ruoyi-gateway:${APP_VERSION}
|
image: yudao-gateway:${APP_VERSION}
|
||||||
container_name: ruoyi-gateway
|
container_name: yudao-gatewa
|
||||||
ports:
|
ports:
|
||||||
- "48080:48080"
|
- "48080:48080"
|
||||||
environment:
|
environment:
|
||||||
SPRING_PROFILES_ACTIVE: dev
|
SPRING_PROFILES_ACTIVE: dev
|
||||||
|
|
||||||
system:
|
system:
|
||||||
image: ruoyi-system:${APP_VERSION}
|
image: yudao-module-system:${APP_VERSION}
|
||||||
container_name: ruoyi-system
|
container_name: yudao-module-system
|
||||||
ports:
|
ports:
|
||||||
- "48081:48081"
|
- "48081:48081"
|
||||||
environment:
|
environment:
|
||||||
SPRING_PROFILES_ACTIVE: dev
|
SPRING_PROFILES_ACTIVE: dev
|
||||||
|
|
||||||
infra:
|
infra:
|
||||||
image: ruoyi-infra:${APP_VERSION}
|
image: yudao-module-infra:${APP_VERSION}
|
||||||
container_name: ruoyi-infra
|
container_name: yudao-module-infra
|
||||||
ports:
|
ports:
|
||||||
- "48082:48082"
|
- "48082:48082"
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in New Issue