Browse Source

添加build和drone脚本

master
wanggang 1 year ago
parent
commit
ad3dbabec0
  1. 1
      build/.gitignore
  2. 1
      build/build.cmd
  3. 1
      build/build.sh
  4. 25
      drone.yml

1
build/.gitignore

@ -0,0 +1 @@
publish

1
build/build.cmd

@ -0,0 +1 @@
dotnet publish ../code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host -o ./publish -c Release -r win-x64 --sc true

1
build/build.sh

@ -0,0 +1 @@
dotnet publish ../code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host -o ./publish -c Release -r win-x64 --sc true

25
drone.yml

@ -0,0 +1,25 @@
---
kind: pipeline
type: docker
name: linux-amd64
platform:
arch: amd64
os: linux
steps:
- name: build
image:mcr.microsoft.com/dotnet/sdk:5.0
commands:
- cd ./build
- ./build.sh
setps:
- name: publish
image: plugins/s3
bucket: default
access_key: O222sbIaMKeGfeX18t8K
secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR
source: build/publish/**/*
target: /jie-suan/bei-qi/publish
Loading…
Cancel
Save