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