From bd986069a4f5ac0bf317939c46f99057a10283ce Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Wed, 2 Jun 2021 16:05:02 +0800 Subject: [PATCH] add .drone.yml --- .drone.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f3c2d20 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,22 @@ +kind: pipeline +type: docker +name: default +platform: + arch: amd64 + os: linux +steps: + - name: build + image: mcr.microsoft.com/dotnet/sdk:5.0 + commands: + - dotnet restore "./example.csproj" + - dotnet build "example.csproj" -c Release -o /app/build + - name: publish + image: plugins/docker:19.03.8 + environment: + PLUGIN_REGISTRY: 10.10.14.176:5000 + PLUGIN_REPO: 10.10.14.176:5000/net5/example + settings: + insecure: true + tags: + - latest + - ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}