|
|
@ -8,78 +8,90 @@ platform: |
|
|
|
os: linux |
|
|
|
|
|
|
|
steps: |
|
|
|
- name: build |
|
|
|
image: mcr.microsoft.com/dotnet/sdk:6.0 |
|
|
|
commands: |
|
|
|
- cd ./build |
|
|
|
- pwd |
|
|
|
- ls |
|
|
|
- chmod 755 ./build.sh |
|
|
|
# - ./build.sh |
|
|
|
- mkdir publish |
|
|
|
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}">./publish/version.txt |
|
|
|
- ls publish |
|
|
|
- name: build |
|
|
|
image: mcr.microsoft.com/dotnet/sdk:6.0 |
|
|
|
commands: |
|
|
|
- cd ./build |
|
|
|
- pwd |
|
|
|
- ls |
|
|
|
- chmod 755 ./build.sh |
|
|
|
# - ./build.sh |
|
|
|
- mkdir publish |
|
|
|
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}">./publish/version.txt |
|
|
|
- ls publish |
|
|
|
|
|
|
|
# - 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/test |
|
|
|
# - stop.cmd |
|
|
|
- cd .. |
|
|
|
- rm test -Recurse |
|
|
|
- mkdir test |
|
|
|
- name: stop |
|
|
|
image: appleboy/drone-ssh |
|
|
|
settings: |
|
|
|
host: dev.ccwin-in.com |
|
|
|
port: 16085 |
|
|
|
username: Administrator |
|
|
|
password: Microsoft@2022 |
|
|
|
command_timeout: 10m |
|
|
|
script: |
|
|
|
- scp help |
|
|
|
- cd D:/BQ-JS/test |
|
|
|
# - stop.cmd |
|
|
|
- cd .. |
|
|
|
- rm test -Recurse |
|
|
|
|
|
|
|
# - name: deploy |
|
|
|
# image: cschlosser/drone-ftps |
|
|
|
# environment: |
|
|
|
# FTP_USERNAME: Administrator |
|
|
|
# FTP_PASSWORD: Microsoft@2022 |
|
|
|
# PLUGIN_SECURE: false |
|
|
|
# PLUGIN_VERIFY: false |
|
|
|
# PLUGIN_HOSTNAME: sftp://dev.ccwin-in.com:16085 |
|
|
|
# PLUGIN_SRC_DIR: /build/publish |
|
|
|
# PLUGIN_DEST_DIR: D:/BQ-JS/test |
|
|
|
# PLUGIN_AUTO_CONFIRM: true |
|
|
|
# PLUGIN_DEBUG: true |
|
|
|
# PLUGIN_ONLY_NEWER: true |
|
|
|
|
|
|
|
# - 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/test |
|
|
|
# source: ./build/publish |
|
|
|
|
|
|
|
- name: deploy |
|
|
|
image: plugins/drone-sftp |
|
|
|
settings: |
|
|
|
host: dev.ccwin-in.com |
|
|
|
port: 16085 |
|
|
|
username: Administrator |
|
|
|
password: Microsoft@2022 |
|
|
|
destination_path : D:/BQ-JS/test |
|
|
|
files: ./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\test |
|
|
|
source: build/publish |
|
|
|
|
|
|
|
# - name: deploy |
|
|
|
# image: atmoz/sftp |
|
|
|
# settings: |
|
|
|
# host: dev.ccwin-in.com |
|
|
|
# port: 16085 |
|
|
|
# username: |
|
|
|
# from_secret: username |
|
|
|
# password: |
|
|
|
# from_secret: password |
|
|
|
# source: build/publish |
|
|
|
# target: D:/BQ-JS/test |
|
|
|
# - name: start |
|
|
|
# image: appleboy/drone-ssh |
|
|
|
# settings: |
|
|
|
# settings: |
|
|
|
# host: dev.ccwin-in.com |
|
|
|
# port: 16085 |
|
|
|
# username: Administrator |
|
|
|
# password: Microsoft@2022 |
|
|
|
# command_timeout: 10m |
|
|
|
# script: |
|
|
|
# - d: |
|
|
|
# - cd D:\BQ-JS\publish |
|
|
|
# - cd D:/BQ-JS/test |
|
|
|
# - start.cmd |
|
|
|
# - echo ok |
|
|
|