|
@@ -23,7 +23,7 @@ steps:
|
|
|
|
|
|
|
|
# 打包 (prod)
|
|
# 打包 (prod)
|
|
|
- name: build-prod
|
|
- name: build-prod
|
|
|
- image: maven:3.8.4
|
|
|
|
|
|
|
+ image: maven:3.8-openjdk-17
|
|
|
volumes: # 将容器内目录挂载到宿主机,仓库需要开启Trusted设置
|
|
volumes: # 将容器内目录挂载到宿主机,仓库需要开启Trusted设置
|
|
|
- name: maven-cache
|
|
- name: maven-cache
|
|
|
path: /root/.m2 # 将maven下载依赖的目录挂载出来,防止重复下载
|
|
path: /root/.m2 # 将maven下载依赖的目录挂载出来,防止重复下载
|
|
@@ -46,7 +46,7 @@ steps:
|
|
|
# 打包 (develop)
|
|
# 打包 (develop)
|
|
|
# - 在同个服务器时,docker-compose.yml 需要修改服务名
|
|
# - 在同个服务器时,docker-compose.yml 需要修改服务名
|
|
|
- name: build-dev
|
|
- name: build-dev
|
|
|
- image: maven:3.8.4
|
|
|
|
|
|
|
+ image: maven:3.8-openjdk-17
|
|
|
volumes: # 将容器内目录挂载到宿主机,仓库需要开启Trusted设置
|
|
volumes: # 将容器内目录挂载到宿主机,仓库需要开启Trusted设置
|
|
|
- name: maven-cache
|
|
- name: maven-cache
|
|
|
path: /root/.m2 # 将maven下载依赖的目录挂载出来,防止重复下载
|
|
path: /root/.m2 # 将maven下载依赖的目录挂载出来,防止重复下载
|