更新 .drone.yml
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/promote/web5-start Build is passing Details

This commit is contained in:
zeiss 2024-04-24 18:06:13 +08:00
parent f5c47cc002
commit a6b4bf15da
1 changed files with 19 additions and 1 deletions

View File

@ -121,7 +121,25 @@ steps:
- promote
target:
- web4-start # 判断promote 的 Target 参数 只有当相同时触发
- name: web-start5 打包发布
image: appleboy/drone-ssh # SSH工具镜像
settings:
host: 119.91.218.235 # 远程连接地址
username: root # 远程连接账号
password:
from_secret: ssh_key # 从Secret中读取SSH密码
port: 22 # 远程连接端口
command_timeout: 5m # 远程执行命令超时时间
script:
- tar -cf /tmp/test.tar.gz /app/build/web-start-1.0-SNAPSHOT.jar
- pwd
- ls -l
when:
event:
- promote
target:
- web5-start
volumes: # 定义流水线挂载目录,用于共享数据
- name: maven-build