Nice 3 years ago
parent
commit
f08f96f475
  1. 11
      .drone.yml
  2. 7
      Build.sh
  3. 1
      SimpleDevApi.sln

11
.drone.yml

@ -3,13 +3,16 @@ type: docker
name: default name: default
steps: steps:
- name: simple - name: compile
image: alpine image: mcr.microsoft.com/dotnet/sdk:6.0
commands:
- sh build.sh
- name: build-image
image: plugins/docker
settings: settings:
dockerfile: SimpleDevApi/Dockerfile dockerfile: SimpleDevApi/Dockerfile
tags: latest tags: latest
insecure: true
registry: "110.42.210.85:2500"
repo: "110.42.210.85:2500/SimpleDevApi/SimpleDevApi:latest" repo: "110.42.210.85:2500/SimpleDevApi/SimpleDevApi:latest"
username: username:
from_secret: admin from_secret: admin

7
Build.sh

@ -0,0 +1,7 @@
wd=$(pwd)
echo wd
cd $wd/SimpleDevApi/
dotnet restore
dotnet build
dotnet publish -c Release -o ./bin/

1
SimpleDevApi.sln

@ -8,6 +8,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{279190B1-8747-44B3-AAF6-28B8CF30E61C}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{279190B1-8747-44B3-AAF6-28B8CF30E61C}"
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
.drone.yml = .drone.yml .drone.yml = .drone.yml
build.sh = build.sh
EndProjectSection EndProjectSection
EndProject EndProject
Global Global

Loading…
Cancel
Save