Browse Source

update drone

master
wanggang 1 year ago
parent
commit
69db7281f4
  1. 27
      .drone.yml

27
.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

Loading…
Cancel
Save