Update .woodpecker.yml #23
@@ -150,7 +150,9 @@ steps:
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cat > NuGet.Config.docker <<EOF
|
||||
rm -f NuGet.Config
|
||||
|
||||
cat > NuGet.Config <<EOF
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
@@ -180,7 +182,6 @@ steps:
|
||||
EXPOSE 8080
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
COPY NuGet.Config.docker ./NuGet.Config
|
||||
COPY . .
|
||||
RUN dotnet restore "%%PROJECTDIR%%/%%PROJECTNAME%%.csproj"
|
||||
RUN dotnet publish "%%PROJECTDIR%%/%%PROJECTNAME%%.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore
|
||||
|
||||
Reference in New Issue
Block a user