From 4f522e34f12c2858683adc1f601182e5a47f6120 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Tue, 13 Aug 2024 15:58:41 +0800 Subject: [PATCH] 'build' --- .drone.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7d8aac1..f4037c9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,26 +14,18 @@ steps: - cp dist/. /build/dist - name: remote_transmit - - image: appleboy/drone-ssh # SSH工具镜像 - settings: - + image: appleboy/drone-ssh # SSH工具镜像 + settings: host: 101.43.112.107 # 远程连接地址 - username: root # 远程连接账号 - password: - from_secret: ssh_password # 从Secret中读取SSH密码 - port: 22 # 远程连接端口 - command_timeout: 5m # 远程执行命令超时时间 - script: - scp -r /feiyang/build/font root@1.94.20.201:/root/testserver - volumes: # 定义流水线挂载目录,用于共享数据 +volumes: # 定义流水线挂载目录,用于共享数据 - name: build-file host: path: /feiyang/build/font # 从宿主机中挂载的目录 \ No newline at end of file