|
@@ -25,14 +25,16 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
|
|
- name: maven-build
|
|
|
path: /app/build # 将应用打包好的Jar和执行脚本挂载出来
|
|
|
commands: # 定义在Docker容器中执行的shell命令
|
|
|
- - echo ${jars}
|
|
|
+ - arrayWen=(${jars})
|
|
|
+ - for var in ${arrayWen[@]};
|
|
|
+ - do
|
|
|
+ - echo ${var}
|
|
|
+ - done
|
|
|
- mvn clean package # 应用打包命令
|
|
|
- cp target/code-test-1.0.0.jar /app/build/code-test-1.0.0.jar
|
|
|
- cp Dockerfile /app/build/Dockerfile
|
|
|
- cp run.sh /app/build/run.sh
|
|
|
- - pwd
|
|
|
- - cd /
|
|
|
- - ls
|
|
|
+
|
|
|
|
|
|
- name: build-start
|
|
|
image: appleboy/drone-ssh # SSH工具镜像
|