From 6d87722cc89d21ed50f4dd12d1d9e04b3051bdd5 Mon Sep 17 00:00:00 2001 From: Dolon Date: Fri, 10 Apr 2026 08:14:21 +0000 Subject: [PATCH] ci: ignore failed cache source when falling back to nuget.org --- .gitea/workflows/ci.yaml | 3 ++- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index a8179d97..08a0fb0d 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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 diff --git a/Dockerfile b/Dockerfile index 9f607646..a59f3c6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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