Browse Source

drone自动化部署脚本文件

change 4 years ago
parent
commit
41d2a3cd15
1 changed files with 2 additions and 3 deletions
  1. 2 3
      .drone.yml

+ 2 - 3
.drone.yml

@@ -17,11 +17,10 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
       - cp run.sh /app/build/run.sh
 
   - name: build-start
-    image: appleboy/drone-ssh # SSH工具镜像
+    image: appleboy/drone-ssh:latest # SSH工具镜像
     settings:
       host: 192.168.0.222 # 远程连接地址
-      username:
-        from_secret: ssh_username# 从Secret中读取SSH密码
+      username: root # 远程连接账号
       password:
         from_secret: ssh_password # 从Secret中读取SSH密码
       port: 22 # 远程连接端口