Revert "fix: bypass broken Nexus proxy, use nuget.org directly"
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 20m7s

This reverts commit 370f735cf2.
This commit is contained in:
masoodafar-web
2026-03-12 00:06:14 +03:30
parent 370f735cf2
commit e946c56631
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ COPY src/NuGet.config ./
# Copy solution and project files
COPY src/ ./
# Restore and publish
# Restore with Nexus config and publish
RUN dotnet restore "CMSMicroservice.WebApi/CMSMicroservice.WebApi.csproj" --configfile NuGet.config
RUN dotnet publish "CMSMicroservice.WebApi/CMSMicroservice.WebApi.csproj" -c Release -o /app/publish --no-restore
+6 -2
View File
@@ -2,11 +2,15 @@
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<!-- Nexus hosted (FourSat packages only) - used by CI proto-push step -->
<!-- Nexus (hosts FourSat packages + proxies nuget.org) -->
<add key="Nexus" value="http://194.5.195.53:32081/repository/nuget-all/index.json" allowInsecureConnections="true" />
<add key="foursat-hosted" value="http://194.5.195.53:32081/repository/foursat-nuget-hosted/index.json" allowInsecureConnections="true" />
</packageSources>
<packageSourceCredentials>
<Nexus>
<add key="Username" value="admin" />
<add key="ClearTextPassword" value="87zH26nbqT" />
</Nexus>
<foursat-hosted>
<add key="Username" value="admin" />
<add key="ClearTextPassword" value="87zH26nbqT" />