'build'
This commit is contained in:
parent
f9cba43f62
commit
237af13b41
28
.drone.yml
28
.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: # 定义流水线挂载目录,用于共享数据
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user