Browse Source

test drone

master
wanggang 1 year ago
parent
commit
366323a011
  1. 24
      .drone.yml
  2. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs

24
.drone.yml

@ -19,17 +19,17 @@ steps:
- echo ${DRONE_COMMIT_MESSAGE}>./publish/version.txt - echo ${DRONE_COMMIT_MESSAGE}>./publish/version.txt
- dotnet nuget locals global-packages --list - dotnet nuget locals global-packages --list
- 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
@ -43,7 +43,7 @@ steps:
- mkdir -p /d/BQ-JS/publish - mkdir -p /d/BQ-JS/publish
- cd /d/BQ-JS - cd /d/BQ-JS
- cmd.exe - cmd.exe
- cd publish&stop.cmd&cd ..&rm -rf publish - cd publish&stop.cmd&sleep 3&cd ..&rm -rf publish
- name: deploy-ftp - name: deploy-ftp
image: cschlosser/drone-ftps image: cschlosser/drone-ftps

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs

@ -17,7 +17,7 @@ namespace Win.Sfs.SettleAccount
Log.Logger = new LoggerConfiguration() Log.Logger = new LoggerConfiguration()
.WriteTo.Async(c => c.Console()) .WriteTo.Async(c => c.Console())
.WriteTo.Async(c => c.File("Logs/logs.txt" .WriteTo.Async(c => c.File("../Logs/logs.txt"
, rollingInterval: RollingInterval.Day , rollingInterval: RollingInterval.Day
, rollOnFileSizeLimit: true , rollOnFileSizeLimit: true
, fileSizeLimitBytes: 30 * 1024 * 1024)) , fileSizeLimitBytes: 30 * 1024 * 1024))

Loading…
Cancel
Save