From b1e2575fdb53d088e6a614dbd295936e274e1bec Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 19 Sep 2023 11:34:41 +0800 Subject: [PATCH 1/3] test drone --- .drone.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index 25ea867d..ddc0ff08 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,20 +32,20 @@ steps: # strip_prefix: build/publish/ # target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} -- name: stop - image: appleboy/drone-ssh - settings: - host: dev.ccwin-in.com - port: 16085 - username: Administrator - password: Microsoft@2022 - command_timeout: 10m - script: - - cd /D D:/BQ-JS/publish - - stop.cmd - - cd .. - - rd/s/q "./publish" - - dir . +# - name: stop +# image: appleboy/drone-ssh +# settings: +# host: dev.ccwin-in.com +# port: 16085 +# username: Administrator +# password: Microsoft@2022 +# command_timeout: 10m +# script: +# - cd /D D:/BQ-JS/publish +# - stop.cmd +# - cd .. +# - rd/s/q "./publish" +# - dir . - name: deploy image: appleboy/drone-scp @@ -55,7 +55,7 @@ steps: username: Administrator password: Microsoft@2022 command_timeout: 10m - target: D:/BQ-JS/test + target: /D D:/BQ-JS/publish source: ./build/publish overwrite: true From 7966025fdc82817f1007c2be5267c30e175a670c Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 19 Sep 2023 11:42:11 +0800 Subject: [PATCH 2/3] test drone --- .drone.yml | 64 +++++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.drone.yml b/.drone.yml index ddc0ff08..641418c4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,34 +32,7 @@ steps: # strip_prefix: build/publish/ # target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} -# - name: stop -# image: appleboy/drone-ssh -# settings: -# host: dev.ccwin-in.com -# port: 16085 -# username: Administrator -# password: Microsoft@2022 -# command_timeout: 10m -# script: -# - cd /D D:/BQ-JS/publish -# - stop.cmd -# - cd .. -# - rd/s/q "./publish" -# - dir . - -- name: deploy - image: appleboy/drone-scp - settings: - host: dev.ccwin-in.com - port: 16085 - username: Administrator - password: Microsoft@2022 - command_timeout: 10m - target: /D D:/BQ-JS/publish - source: ./build/publish - overwrite: true - -- name: start +- name: stop image: appleboy/drone-ssh settings: host: dev.ccwin-in.com @@ -68,7 +41,34 @@ steps: password: Microsoft@2022 command_timeout: 10m script: - - d: - - cd D:\BQ-JS\publish - - start.cmd - - echo ok + - cd /D D:/BQ-JS/test + - stop.cmd + - cd .. + - rmdir /s /q "./test" + - dir . + +# - name: deploy +# image: appleboy/drone-scp +# settings: +# host: dev.ccwin-in.com +# port: 16085 +# username: Administrator +# password: Microsoft@2022 +# command_timeout: 10m +# target: /D D:/BQ-JS/publish +# source: ./build/publish +# overwrite: true + +# - name: start +# image: appleboy/drone-ssh +# settings: +# host: dev.ccwin-in.com +# port: 16085 +# username: Administrator +# password: Microsoft@2022 +# command_timeout: 10m +# script: +# - d: +# - cd D:\BQ-JS\publish +# - start.cmd +# - echo ok From eefa35c185bef94a5e1df379e95ae08daacf9d98 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 19 Sep 2023 11:56:57 +0800 Subject: [PATCH 3/3] update drone --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 641418c4..a7e6b5df 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,7 +42,7 @@ steps: command_timeout: 10m script: - cd /D D:/BQ-JS/test - - stop.cmd + # - stop.cmd - cd .. - rmdir /s /q "./test" - dir .