This commit is contained in:
parent
51ecfa9556
commit
b91971957b
2 changed files with 3 additions and 13 deletions
12
.drone.yml
12
.drone.yml
|
@ -3,18 +3,8 @@ name: testing
|
|||
type: docker
|
||||
|
||||
steps:
|
||||
# - name: Install Dependencies
|
||||
# image: mcr.microsoft.com/dotnet/sdk:6.0
|
||||
# commands:
|
||||
# - dotnet restore ./src
|
||||
|
||||
# - name: Build
|
||||
# image: mcr.microsoft.com/dotnet/sdk:6.0
|
||||
# commands:
|
||||
# - dotnet build --configuration Release ./src
|
||||
|
||||
- name: Test
|
||||
image: mcr.microsoft.com/dotnet/sdk:6.0
|
||||
image: mcr.microsoft.com/dotnet/sdk:7.0
|
||||
commands:
|
||||
- sed -i "s/127\.0\.0\.1/database/g" ./src/Tests/BirdsiteLive.DAL.Postgres.Tests/DataAccessLayers/Base/PostgresTestingBase.cs
|
||||
- dotnet test --verbosity minimal ./src
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS publish
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS publish
|
||||
COPY ./src/ ./src/
|
||||
RUN dotnet publish "/src/BirdsiteLive/BirdsiteLive.csproj" -c Release -o /app/publish
|
||||
RUN dotnet publish "/src/BSLManager/BSLManager.csproj" -r linux-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -c Release -o /app/publish
|
||||
|
|
Reference in a new issue