From 1702060c646f547459879ee410c2b6d5fc320a4e Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Wed, 20 Sep 2023 09:30:10 +0800 Subject: [PATCH] update drone --- .drone.yml | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 365d8c02..cacce703 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,19 +45,34 @@ steps: - sleep 3s - cd .. - rm -rf publish + - mkdir publish + + # - name: deploy + # image: appleboy/drone-scp + # settings: + # host: dev.ccwin-in.com + # port: 16085 + # username: Administrator + # password: Microsoft@2022 + # timeout: "30m" + # command_timeout: "30m" + # target: /d/BQ-JS/publish + # source: build/publish + # strip_components: 2 - name: deploy - image: appleboy/drone-scp - settings: - host: dev.ccwin-in.com - port: 16085 - username: Administrator - password: Microsoft@2022 - timeout: "30m" - command_timeout: "30m" - target: /d/BQ-JS/publish - source: build/publish - strip_components: 2 + image: cschlosser/drone-ftps + environment: + FTP_USERNAME: Administrator + FTP_PASSWORD: Microsoft@2022 + PLUGIN_SECURE: false + PLUGIN_VERIFY: false + PLUGIN_HOSTNAME: sftp://dev.ccwin-in.com:16085 + PLUGIN_SRC_DIR: /build/publish + PLUGIN_DEST_DIR: /d/BQ-JS/publish + PLUGIN_AUTO_CONFIRM: true + PLUGIN_DEBUG: true + PLUGIN_ONLY_NEWER: true - name: start image: appleboy/drone-ssh