From 854dfeee91e1da48b0f4ce34296bcf2eb5aa464e Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Tue, 13 Aug 2024 15:11:09 +0800 Subject: [PATCH] 'build' --- .drone.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.drone.yml b/.drone.yml index c75fa53fa..74713c18e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -71,11 +71,53 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行 command_timeout: 5m # 远程执行命令超时时间 + script: + + - chmod +x /ludu/maven/build/yudao-gateway/run.sh # 更改为可执行脚本 + - /ludu/maven/build/yudao-gateway/run.sh # 运行脚本打包应用镜像并运行 + + - chmod +x /ludu/maven/build/yudao-module-system/run.sh # 更改为可执行脚本 + - /ludu/maven/build/yudao-module-system/run.sh # 运行脚本打包应用镜像并运行 + + - chmod +x /ludu/maven/build/yudao-module-infra/run.sh # 更改为可执行脚本 + - /ludu/maven/build/yudao-module-infra/run.sh # 运行脚本打包应用镜像并运行 + + - chmod +x /ludu/maven/build/ludu-job-admin/run.sh # 更改为可执行脚本 + - /ludu/maven/build/ludu-job-admin/run.sh # 运行脚本打包应用镜像并运行 + + - scp -r /ludu/maven/build/ludu-module-ticketing root@120.46.37.243:/ludu/maven/build + - scp -r /ludu/maven/build/ludu-module-parking root@120.46.37.243:/ludu/maven/build + - scp -r /ludu/maven/build/ludu-module-datacenter root@120.46.37.243:/ludu/maven/build + + - 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: # 定义流水线挂载目录,用于共享数据 - name: maven-build