Revert "fix: bypass broken Nexus, use nuget.org + local proto build"
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 1m28s
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 1m28s
This reverts commit 7147e9930f.
This commit is contained in:
@@ -55,21 +55,6 @@ jobs:
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login 194.5.195.53:32082 -u admin --password-stdin
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ env.REGISTRY }} -u admin --password-stdin
|
||||
|
||||
- name: Build Proto Package
|
||||
run: |
|
||||
echo "📦 Building Proto package from CMS..."
|
||||
git clone --depth 1 --branch kub-stage http://gitea-svc:3000/admin/CMS.git /tmp/cms
|
||||
docker run --rm --network host \
|
||||
-v /tmp/cms:/cms \
|
||||
-v $(pwd)/src/nupkg:/out \
|
||||
194.5.195.53:32082/dotnet/sdk:9.0 sh -c '
|
||||
cd /cms/src/CMSMicroservice.Protobuf
|
||||
dotnet restore --source https://api.nuget.org/v3/index.json
|
||||
dotnet build -c Release --no-restore
|
||||
dotnet pack -c Release --no-build -o /out
|
||||
'
|
||||
echo "✅ Proto package: $(ls src/nupkg/)"
|
||||
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
cd src
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
FROM 194.5.195.53:32082/dotnet/sdk:9.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
# Copy NuGet config, local packages, and project file
|
||||
# Copy NuGet config and project file
|
||||
COPY ["BackOffice/NuGet.config", "NuGet.config"]
|
||||
COPY ["nupkg/", "nupkg/"]
|
||||
COPY ["BackOffice/BackOffice.csproj", "BackOffice/"]
|
||||
|
||||
# Restore dependencies
|
||||
|
||||
@@ -2,10 +2,15 @@
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<clear />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<!-- Local packages (dev builds) -->
|
||||
<add key="Local" value="/home/masoud/Apps/project/FourSat/nupkg" />
|
||||
<!-- Local packages (CI Docker builds) -->
|
||||
<add key="LocalCI" value="nupkg" />
|
||||
<!-- Nexus (hosts FourSat packages + proxies nuget.org) -->
|
||||
<add key="Nexus" value="http://194.5.195.53:32081/repository/nuget-all/index.json" allowInsecureConnections="true" />
|
||||
</packageSources>
|
||||
<packageSourceCredentials>
|
||||
<Nexus>
|
||||
<add key="Username" value="admin" />
|
||||
<add key="ClearTextPassword" value="87zH26nbqT" />
|
||||
</Nexus>
|
||||
</packageSourceCredentials>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user