|
|
@ -12,7 +12,9 @@ steps: |
|
|
|
path: /mnt/app/build # 将应用打包好的Jar和执行脚本挂载出来 |
|
|
|
path: /mnt/app/build # 将应用打包好的Jar和执行脚本挂载出来 |
|
|
|
commands: # 定义在Docker容器中执行的shell命令 |
|
|
|
commands: # 定义在Docker容器中执行的shell命令 |
|
|
|
- mvn clean package -DskipTests=true # 应用打包命 |
|
|
|
- mvn clean package -DskipTests=true # 应用打包命 |
|
|
|
- sh docker/copy.sh |
|
|
|
- cd docker |
|
|
|
|
|
|
|
- sh copy.sh |
|
|
|
|
|
|
|
- cd ../ |
|
|
|
- cp docker /mnt/app/build/ |
|
|
|
- cp docker /mnt/app/build/ |
|
|
|
|
|
|
|
|
|
|
|
- name: build-docker |
|
|
|
- name: build-docker |
|
|
|