xinwei #78
@ -21,7 +21,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
|||||||
path: /app/build # 将应用打包好的Jar和执行脚本挂载出来
|
path: /app/build # 将应用打包好的Jar和执行脚本挂载出来
|
||||||
|
|
||||||
commands: # 定义在Docker容器中执行的shell命令
|
commands: # 定义在Docker容器中执行的shell命令
|
||||||
- mvn package -s settings.xml -Dmaven.test.skip=true # 应用打包命令
|
- mvn package -Dmaven.test.skip=true # 应用打包命令
|
||||||
- |
|
- |
|
||||||
if [ "${service}" = "gateway" ] || [ "${service}" = "all" ]; then
|
if [ "${service}" = "gateway" ] || [ "${service}" = "all" ]; then
|
||||||
cp ./yudao-gateway/target/yudao-gateway.jar /app/build/yudao-gateway/target
|
cp ./yudao-gateway/target/yudao-gateway.jar /app/build/yudao-gateway/target
|
||||||
@ -142,4 +142,4 @@ volumes: # 定义流水线挂载目录,用于共享数据
|
|||||||
|
|
||||||
- name: maven-cache
|
- name: maven-cache
|
||||||
host:
|
host:
|
||||||
path: /root/.m2 # 从宿主机中挂载的目录
|
path: /ludu/cache # 从宿主机中挂载的目录
|
Loading…
Reference in New Issue
Block a user