From 5a8149235d460df64ff3321a5d35d49aadbe75aa Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 19 Sep 2023 10:22:46 +0800 Subject: [PATCH] test drone --- .drone.yml | 96 +++++++++++++++++++++++++++--------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/.drone.yml b/.drone.yml index a14647e3..d9213dbf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,54 +20,54 @@ steps: - echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}">./publish/version.txt - ls -# - name: publish -# image: plugins/s3 -# settings: -# endpoint: http://dev.ccwin-in.com:3008 -# path_style: true -# bucket: default -# access_key: O222sbIaMKeGfeX18t8K -# secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR -# source: build/publish/**/* -# strip_prefix: build/publish/ -# target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} +- name: publish + image: plugins/s3 + settings: + endpoint: http://dev.ccwin-in.com:3008 + path_style: true + bucket: default + access_key: O222sbIaMKeGfeX18t8K + secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR + source: build/publish/**/* + 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:\BQ-JS\publish -# - stop.cmd -# - cd .. -# - dir -# - rmdir /s /q D:\BQ-JS\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:\BQ-JS\publish + - stop.cmd + - cd .. + - dir + - rmdir /s /q D:\BQ-JS\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:/BQ-JS/publish -# source: build/publish/**/* +- name: deploy + image: appleboy/drone-scp + settings: + host: dev.ccwin-in.com + port: 16085 + username: Administrator + password: Microsoft@2022 + command_timeout: 10m + target: /d:/BQ-JS/publish + 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 -# - echo ok +- 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 + - echo ok