CI/Docker NuGet: Nexus nuget-group primary + Liara fallback
Both the CI restore (/tmp/nuget.ci.config) and the Docker image build (nuget.docker.config) now use https://mirror.soroushasadi.com/repository/ nuget-group/ as the primary source with Liara as fallback, so a single mirror returning 500 no longer breaks restore. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -39,18 +39,18 @@ jobs:
|
|||||||
git fetch --depth=1 origin "${REF}"
|
git fetch --depth=1 origin "${REF}"
|
||||||
git checkout FETCH_HEAD
|
git checkout FETCH_HEAD
|
||||||
|
|
||||||
- name: Write NuGet config (Liara primary; Nexus optional)
|
- name: Write NuGet config (Nexus group primary; Liara fallback)
|
||||||
# NOTE: mirror.soroushasadi.com currently serves an incomplete TLS chain
|
# Nexus nuget-group is the primary mirror; Liara is kept as a fallback so a
|
||||||
# (leaf only, no intermediate). .NET on Linux does NOT auto-fetch the
|
# single mirror outage (e.g. a 500 on the service index) doesn't break restore.
|
||||||
# intermediate via AIA the way Windows does, so it fails with PartialChain.
|
|
||||||
# Liara serves a complete chain, so it is the deterministic source here.
|
|
||||||
# Re-add Nexus once nginx points ssl_certificate at fullchain.pem.
|
|
||||||
run: |
|
run: |
|
||||||
cat > /tmp/nuget.ci.config << 'EOF'
|
cat > /tmp/nuget.ci.config << 'EOF'
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<packageSources>
|
<packageSources>
|
||||||
<clear />
|
<clear />
|
||||||
|
<add key="nexus"
|
||||||
|
value="https://mirror.soroushasadi.com/repository/nuget-group/index.json"
|
||||||
|
protocolVersion="3" />
|
||||||
<add key="liara"
|
<add key="liara"
|
||||||
value="https://package-mirror.liara.ir/repository/nuget/index.json"
|
value="https://package-mirror.liara.ir/repository/nuget/index.json"
|
||||||
protocolVersion="3" />
|
protocolVersion="3" />
|
||||||
|
|||||||
+7
-6
@@ -1,15 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
NuGet source for the Docker image build (Linux .NET — runs `dotnet restore`
|
NuGet sources for the Docker image build (Linux .NET — runs `dotnet restore`
|
||||||
inside the SDK container). Uses the Liara mirror because it serves a complete
|
inside the SDK container). Nexus nuget-group is primary; Liara is kept as a
|
||||||
TLS chain. mirror.soroushasadi.com currently serves a leaf-only chain, which
|
fallback so a single mirror outage doesn't break the build. nuget.org is
|
||||||
.NET on Linux rejects with PartialChain (Windows auto-fetches the missing
|
filtered in Iran, so it is intentionally not listed.
|
||||||
intermediate via AIA; Linux does not). Re-add Nexus once nginx serves
|
|
||||||
fullchain.pem for mirror.soroushasadi.com.
|
|
||||||
-->
|
-->
|
||||||
<configuration>
|
<configuration>
|
||||||
<packageSources>
|
<packageSources>
|
||||||
<clear />
|
<clear />
|
||||||
|
<add key="nexus"
|
||||||
|
value="https://mirror.soroushasadi.com/repository/nuget-group/index.json"
|
||||||
|
protocolVersion="3" />
|
||||||
<add key="liara"
|
<add key="liara"
|
||||||
value="https://package-mirror.liara.ir/repository/nuget/index.json"
|
value="https://package-mirror.liara.ir/repository/nuget/index.json"
|
||||||
protocolVersion="3" />
|
protocolVersion="3" />
|
||||||
|
|||||||
Reference in New Issue
Block a user