ci: ignore failed cache source when falling back to nuget.org
This commit is contained in:
@@ -32,7 +32,8 @@ jobs:
|
||||
echo "Using NuGet cache: ${NUGET_CACHE_URL}"
|
||||
dotnet restore src/UsingCash.sln \
|
||||
--source "${NUGET_CACHE_URL}" \
|
||||
--source "https://api.nuget.org/v3/index.json"
|
||||
--source "https://api.nuget.org/v3/index.json" \
|
||||
--ignore-failed-sources
|
||||
else
|
||||
dotnet restore src/UsingCash.sln
|
||||
fi
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ COPY src/UsingCash.Migration/*.csproj src/UsingCash.Migration/
|
||||
COPY src/UsingCash.Tests/*.csproj src/UsingCash.Tests/
|
||||
ARG NUGET_CACHE_URL
|
||||
RUN if [ -n "$NUGET_CACHE_URL" ]; then \
|
||||
dotnet restore src/UsingCash.sln --source "$NUGET_CACHE_URL" --source "https://api.nuget.org/v3/index.json"; \
|
||||
dotnet restore src/UsingCash.sln --source "$NUGET_CACHE_URL" --source "https://api.nuget.org/v3/index.json" --ignore-failed-sources; \
|
||||
else \
|
||||
dotnet restore src/UsingCash.sln; \
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user