fix: clean build after restore
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
42c6dfd3ba
commit
3f775a110b
|
@ -19,8 +19,8 @@ steps:
|
||||||
pull: always
|
pull: always
|
||||||
image: mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
|
image: mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
|
||||||
commands:
|
commands:
|
||||||
- dotnet clean
|
|
||||||
- dotnet restore
|
- dotnet restore
|
||||||
|
- dotnet clean
|
||||||
- dotnet publish -c Release
|
- dotnet publish -c Release
|
||||||
|
|
||||||
- name: docker-release-build
|
- name: docker-release-build
|
||||||
|
|
|
@ -3,8 +3,8 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
|
||||||
COPY . /src
|
COPY . /src
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
RUN dotnet --version && dotnet --info
|
RUN dotnet --version && dotnet --info
|
||||||
RUN dotnet clean
|
|
||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
|
RUN dotnet clean
|
||||||
RUN dotnet build -c Release
|
RUN dotnet build -c Release
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:2.1
|
FROM mcr.microsoft.com/dotnet/aspnet:2.1
|
||||||
|
|
|
@ -4,8 +4,8 @@ COPY . /src
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
RUN dotnet --version && dotnet --info
|
RUN dotnet --version && dotnet --info
|
||||||
RUN dotnet clean
|
|
||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
|
RUN dotnet clean
|
||||||
|
|
||||||
RUN dotnet build -c Debug
|
RUN dotnet build -c Debug
|
||||||
|
|
||||||
|
|
Reference in New Issue