From d9334fb26dda578b1e99672a7d762a41c02803c0 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Mon, 19 Aug 2024 23:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E8=84=9A=E6=9C=AC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 58 +++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/.drone.yml b/.drone.yml index a28700868..adfa555bc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -98,44 +98,44 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行 - chmod +x ./run.sh # 更改为可执行脚本 - ./run.sh || echo "ludu-job-admin build failed" # 运行脚本打包应用镜像并运行 - - echo "start copy" - - scp -r /ludu/maven/build/ludu-module-ticketing root@120.46.37.243:/ludu/maven/build - - echo "ticket done" - - scp -r /ludu/maven/build/ludu-module-parking root@120.46.37.243:/ludu/maven/build - - echo "park done" - - scp -r /ludu/maven/build/ludu-module-datacenter root@120.46.37.243:/ludu/maven/build - - echo "datecenter done" +# - echo "start copy" +# - scp -r /ludu/maven/build/ludu-module-ticketing root@120.46.37.243:/ludu/maven/build +# - echo "ticket done" +# - scp -r /ludu/maven/build/ludu-module-parking root@120.46.37.243:/ludu/maven/build +# - echo "park done" +# - scp -r /ludu/maven/build/ludu-module-datacenter root@120.46.37.243:/ludu/maven/build +# - echo "datecenter done" - - name: build-other-service +# - name: build-other-service - image: appleboy/drone-ssh # SSH工具镜像 +# image: appleboy/drone-ssh # SSH工具镜像 - settings: +# settings: - host: 120.46.37.243 # 远程连接地址 +# host: 120.46.37.243 # 远程连接地址 - username: root # 远程连接账号 +# username: root # 远程连接账号 - password: +# password: - from_secret: ssh_password2 # 从Secret中读取SSH密码 - - port: 22 # 远程连接端口 - - command_timeout: 5m # 远程执行命令超时时间 - - script: - - cd /ludu/maven/build/ludu-module-ticketing/ - - chmod +x ./run.sh # 更改为可执行脚本 - - ./run.sh || echo "ludu-module-ticketing build failed" # 运行脚本打包应用镜像并运行 +# from_secret: ssh_password2 # 从Secret中读取SSH密码 - - cd /ludu/maven/build/ludu-module-parking/ - - chmod +x ./run.sh # 更改为可执行脚本 - - ./run.sh || echo "ludu-module-parking build failed" # 运行脚本打包应用镜像并运行 +# port: 22 # 远程连接端口 - - cd /ludu/maven/build/ludu-module-datacenter/ - - chmod +x ./run.sh # 更改为可执行脚本 - - ./run.sh || echo "ludu-module-datacenter build failed" # 运行脚本打包应用镜像并运行 +# command_timeout: 5m # 远程执行命令超时时间 + +# script: +# - cd /ludu/maven/build/ludu-module-ticketing/ +# - chmod +x ./run.sh # 更改为可执行脚本 +# - ./run.sh || echo "ludu-module-ticketing build failed" # 运行脚本打包应用镜像并运行 + +# - cd /ludu/maven/build/ludu-module-parking/ +# - chmod +x ./run.sh # 更改为可执行脚本 +# - ./run.sh || echo "ludu-module-parking build failed" # 运行脚本打包应用镜像并运行 + +# - cd /ludu/maven/build/ludu-module-datacenter/ +# - chmod +x ./run.sh # 更改为可执行脚本 +# - ./run.sh || echo "ludu-module-datacenter build failed" # 运行脚本打包应用镜像并运行 volumes: # 定义流水线挂载目录,用于共享数据