|
|
@@ -20,9 +20,9 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
|
|
image: appleboy/drone-ssh # SSH工具镜像
|
|
|
settings:
|
|
|
host: 192.168.0.222 # 远程连接地址
|
|
|
- username: ssh_password # 远程连接账号
|
|
|
+ username: root # 远程连接账号
|
|
|
password:
|
|
|
- from_secret: 123456 # 从Secret中读取SSH密码
|
|
|
+ from_secret: ssh_password # 从Secret中读取SSH密码
|
|
|
port: 22 # 远程连接端口
|
|
|
command_timeout: 5m # 远程执行命令超时时间
|
|
|
script:
|