From 69db7281f4c119724c2b6131684a1d07e895eb68 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 19 Sep 2023 09:52:46 +0800 Subject: [PATCH] update drone --- .drone.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d96d50ab..5f2d440d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,7 +28,21 @@ steps: secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR source: build/publish/**/* strip_prefix: build/publish/ - target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} + 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:\BQ-JS\publish + - stop.cmd + - cd .. + - rmdir /s /q D:\BQ-JS\publish - name: deploy image: appleboy/drone-scp @@ -41,3 +55,14 @@ steps: target: /d:/BQ-JS/test source: build/publish/**/* +- name: start + image: appleboy/drone-ssh + settings: + host: dev.ccwin-in.com + port: 16085 + username: Administrator + password: Microsoft@2022 + command_timeout: 10m + script: + - cd D:\BQ-JS\publish + - start.cmd