更新 .drone.yml
This commit is contained in:
parent
f5c47cc002
commit
a6b4bf15da
20
.drone.yml
20
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue