Compare commits
2 Commits
3d1d72ed9b
...
bd8d754ee8
| Author | SHA1 | Date | |
|---|---|---|---|
| bd8d754ee8 | |||
| 69a630d185 |
@@ -39,9 +39,10 @@ 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 (Nexus group primary; Liara fallback)
|
- name: Write NuGet config (Nexus only)
|
||||||
# Nexus nuget-group is the primary mirror; Liara is kept as a fallback so a
|
# Single source = our Nexus mirror. We do NOT list Liara as a fallback: NuGet loads
|
||||||
# single mirror outage (e.g. a 500 on the service index) doesn't break restore.
|
# the service index of EVERY configured source, so a 500 from a fallback aborts the
|
||||||
|
# whole restore (NU1301). Nexus is the source of truth.
|
||||||
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"?>
|
||||||
@@ -51,9 +52,6 @@ jobs:
|
|||||||
<add key="nexus"
|
<add key="nexus"
|
||||||
value="https://mirror.soroushasadi.com/repository/nuget-group/index.json"
|
value="https://mirror.soroushasadi.com/repository/nuget-group/index.json"
|
||||||
protocolVersion="3" />
|
protocolVersion="3" />
|
||||||
<add key="liara"
|
|
||||||
value="https://package-mirror.liara.ir/repository/nuget/index.json"
|
|
||||||
protocolVersion="3" />
|
|
||||||
</packageSources>
|
</packageSources>
|
||||||
<config>
|
<config>
|
||||||
<add key="http_retry_count" value="6" />
|
<add key="http_retry_count" value="6" />
|
||||||
|
|||||||
+2
-2
@@ -2,9 +2,9 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<packageSources>
|
<packageSources>
|
||||||
<clear />
|
<clear />
|
||||||
<!-- Soroush Nexus mirror (primary) + Liara mirror (fallback) — nuget.org is filtered. -->
|
<!-- Single source: Soroush Nexus mirror. No Liara fallback — NuGet probes every
|
||||||
|
listed source's index, so a dead fallback (500) aborts the whole restore. -->
|
||||||
<add key="nexus" value="https://mirror.soroushasadi.com/repository/nuget-group/index.json" protocolVersion="3" />
|
<add key="nexus" value="https://mirror.soroushasadi.com/repository/nuget-group/index.json" protocolVersion="3" />
|
||||||
<add key="liara" value="https://package-mirror.liara.ir/repository/nuget/index.json" protocolVersion="3" />
|
|
||||||
</packageSources>
|
</packageSources>
|
||||||
<config>
|
<config>
|
||||||
<add key="http_retry_count" value="6" />
|
<add key="http_retry_count" value="6" />
|
||||||
|
|||||||
+5
-7
@@ -1,9 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
NuGet sources for the Docker image build (Linux .NET — runs `dotnet restore`
|
NuGet source for the Docker image build (Linux .NET — runs `dotnet restore`
|
||||||
inside the SDK container). Nexus nuget-group is primary; Liara is kept as a
|
inside the SDK container). Single source = our Nexus mirror. We deliberately
|
||||||
fallback so a single mirror outage doesn't break the build. nuget.org is
|
do NOT list a fallback: NuGet loads the service index of every configured
|
||||||
filtered in Iran, so it is intentionally not listed.
|
source, so a 500 from a fallback would abort the whole restore. nuget.org is
|
||||||
|
filtered in Iran and is intentionally absent — Nexus is the source of truth.
|
||||||
-->
|
-->
|
||||||
<configuration>
|
<configuration>
|
||||||
<packageSources>
|
<packageSources>
|
||||||
@@ -11,9 +12,6 @@
|
|||||||
<add key="nexus"
|
<add key="nexus"
|
||||||
value="https://mirror.soroushasadi.com/repository/nuget-group/index.json"
|
value="https://mirror.soroushasadi.com/repository/nuget-group/index.json"
|
||||||
protocolVersion="3" />
|
protocolVersion="3" />
|
||||||
<add key="liara"
|
|
||||||
value="https://package-mirror.liara.ir/repository/nuget/index.json"
|
|
||||||
protocolVersion="3" />
|
|
||||||
</packageSources>
|
</packageSources>
|
||||||
<config>
|
<config>
|
||||||
<add key="http_retry_count" value="8" />
|
<add key="http_retry_count" value="8" />
|
||||||
|
|||||||
Reference in New Issue
Block a user