From 237af13b41b6321ee75d6eb587853e060e24c35d Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Tue, 13 Aug 2024 15:00:33 +0800 Subject: [PATCH] 'build' --- .drone.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.drone.yml b/.drone.yml index 6f9f515ff..816a91fac 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,6 +53,34 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行 - cp ./ludu-module-datacenter/ludu-module-datacenter-biz/Dockerfile /app/build/ludu-module-datacenter - cp ./ludu-module-datacenter/ludu-module-datacenter-biz/run.sh /app/build/ludu-module-datacenter + - name: build-other-service + + image: appleboy/drone-ssh # SSH工具镜像 + + settings: + + host: 120.46.37.243 # 远程连接地址 + + username: root # 远程连接账号 + + password: + + from_secret: ssh_password2 # 从Secret中读取SSH密码 + + port: 22 # 远程连接端口 + + command_timeout: 5m # 远程执行命令超时时间 + + script: + + - chmod +x /ludu/maven/build/ludu-module-ticketing/run.sh # 更改为可执行脚本 + - /ludu/maven/build/ludu-module-ticketing/run.sh # 运行脚本打包应用镜像并运行 + + - chmod +x /ludu/maven/build/ludu-module-parking/run.sh # 更改为可执行脚本 + - /ludu/maven/build/ludu-module-parking/run.sh # 运行脚本打包应用镜像并运行 + + - chmod +x /ludu/maven/build/ludu-module-datacenter/run.sh # 更改为可执行脚本 + - /ludu/maven/build/ludu-module-datacenter/run.sh # 运行脚本打包应用镜像并运行 volumes: # 定义流水线挂载目录,用于共享数据