From 2586c116daec71e1798b4cbfa8c1f013388fd5b2 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Wed, 20 Sep 2023 10:37:38 +0800 Subject: [PATCH] test drone --- .drone.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index e25ba812..1116b040 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,8 +13,8 @@ steps: commands: - cd ./build - chmod 755 ./build.sh - - ./build.sh - # - mkdir publish + #- ./build.sh + - mkdir publish - echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}\n">./publish/version.txt - echo ${DRONE_COMMIT_MESSAGE}>./publish/version.txt - ls publish @@ -47,15 +47,26 @@ steps: - rm -rf publish - mkdir publish + # - name: deploy + # image: cupcakearmy/drone-deploy + # settings: + # host: dev.ccwin-in.com + # port: 16085 + # user: Administrator + # password: Microsoft@2022 + # sources: ./build/publish + # target: /d/BQ-JS/publish + - name: deploy - image: cupcakearmy/drone-deploy + image: appleboy/drone-ssh settings: host: dev.ccwin-in.com port: 16085 - user: Administrator + username: Administrator password: Microsoft@2022 - sources: ./build/publish - target: /d/BQ-JS/publish + command_timeout: 10m + script: + - rsync - name: start image: appleboy/drone-ssh