fix: clean build after restore
All checks were successful
continuous-integration/drone/push Build is passing

* this fixes occasional situation when NuGets have not been restored yet
  but the clean build already running required them, which resulted a
  failed build
This commit is contained in:
surtur 2020-11-29 21:08:11 +01:00
parent 42c6dfd3ba
commit 3f775a110b
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
4 changed files with 4 additions and 4 deletions

View File

@ -19,8 +19,8 @@ steps:
pull: always
image: mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
commands:
- dotnet clean
- dotnet restore
- dotnet clean
- dotnet publish -c Release
- name: docker-release-build

View File

@ -3,8 +3,8 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
COPY . /src
WORKDIR /src
RUN dotnet --version && dotnet --info
RUN dotnet clean
RUN dotnet restore
RUN dotnet clean
RUN dotnet build -c Release
FROM mcr.microsoft.com/dotnet/aspnet:2.1

View File

@ -4,8 +4,8 @@ COPY . /src
WORKDIR /src
RUN dotnet --version && dotnet --info
RUN dotnet clean
RUN dotnet restore
RUN dotnet clean
RUN dotnet build -c Debug

View File

@ -20,7 +20,7 @@ build:
run:
$(CC) run .
releasebuild: clean restore
releasebuild: restore clean
$(CC) publish -c Release
dockerbuild: