bump docker
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Sam Therapy 2023-05-04 22:09:14 +02:00
parent 51ecfa9556
commit b91971957b
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
2 changed files with 3 additions and 13 deletions

View File

@ -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

View File

@ -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