更新 .drone.yml
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
zeiss 2024-04-21 13:29:27 +08:00
parent 3676e33ef2
commit 5df3b443c3
1 changed files with 4 additions and 5 deletions

View File

@ -55,7 +55,7 @@ steps:
- name: web2-start scp 打包发布
pull: if-not-exists
image: ryjer/drone-scp # SSH工具镜像
image: appleboy/drone-ssh # SSH工具镜像
settings:
host: 106.52.175.114 # 远程连接地址
username: root # 远程连接账号
@ -63,10 +63,9 @@ steps:
from_secret: ssh_key2 # 从Secret中读取SSH密码
port: 22 # 远程连接端口
command_timeout: 5m # 远程执行命令超时时间
source:
- ./*
target:
- /apps/project/test/
script:
- cd /apps/project/test # 进入宿主机构建目录
- ls -l
when:
event: