Browse Source

Merge branch 'master' of http://dev.ccwin-in.com:3000/BoXu.Zheng/BeiJinSettleAccount

master
赵新宇 1 year ago
parent
commit
047574a33f
  1. 76
      .drone.yml

76
.drone.yml

@ -8,7 +8,7 @@ platform:
os: linux os: linux
steps: steps:
- name: build - name: build
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
commands: commands:
- cd ./build - cd ./build
@ -20,19 +20,19 @@ steps:
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}">./publish/version.txt - echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}">./publish/version.txt
- ls publish - ls publish
# - name: publish # - name: publish
# image: plugins/s3 # image: plugins/s3
# settings: # settings:
# endpoint: http://dev.ccwin-in.com:3008 # endpoint: http://dev.ccwin-in.com:3008
# path_style: true # path_style: true
# bucket: default # bucket: default
# access_key: O222sbIaMKeGfeX18t8K # access_key: O222sbIaMKeGfeX18t8K
# secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR # secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR
# source: build/publish/**/* # source: build/publish/**/*
# strip_prefix: 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} # target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}
- name: stop - name: stop
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
host: dev.ccwin-in.com host: dev.ccwin-in.com
@ -41,35 +41,48 @@ steps:
password: Microsoft@2022 password: Microsoft@2022
command_timeout: 10m command_timeout: 10m
script: script:
- scp help
- cd D:/BQ-JS/test - cd D:/BQ-JS/test
# - stop.cmd # - stop.cmd
- cd .. - cd ..
- rm test -Recurse - rm test -Recurse
- mkdir test
# - name: deploy # - name: deploy
# image: appleboy/drone-scp # image: cschlosser/drone-ftps
# settings: # environment:
# host: dev.ccwin-in.com # FTP_USERNAME: Administrator
# port: 16085 # FTP_PASSWORD: Microsoft@2022
# username: Administrator # PLUGIN_SECURE: false
# password: Microsoft@2022 # PLUGIN_VERIFY: false
# command_timeout: 10m # PLUGIN_HOSTNAME: sftp://dev.ccwin-in.com:16085
# target: /D D:/BQ-JS/test # PLUGIN_SRC_DIR: /build/publish
# source: ./build/publish # PLUGIN_DEST_DIR: D:/BQ-JS/test
# PLUGIN_AUTO_CONFIRM: true
# PLUGIN_DEBUG: true
# PLUGIN_ONLY_NEWER: true
- name: deploy - name: deploy
image: plugins/drone-sftp image: appleboy/drone-scp
settings: settings:
host: dev.ccwin-in.com host: dev.ccwin-in.com
port: 16085 port: 16085
username: Administrator username: Administrator
password: Microsoft@2022 password: Microsoft@2022
destination_path : D:/BQ-JS/test command_timeout: 10m
files: ./build/publish/**/* 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 # - name: start
# image: appleboy/drone-ssh # image: appleboy/drone-ssh
# settings: # settings:
@ -79,7 +92,6 @@ steps:
# password: Microsoft@2022 # password: Microsoft@2022
# command_timeout: 10m # command_timeout: 10m
# script: # script:
# - d: # - cd D:/BQ-JS/test
# - cd D:\BQ-JS\publish
# - start.cmd # - start.cmd
# - echo ok # - echo ok

Loading…
Cancel
Save