From aa1d21a616d21c186bfdefb4dc286fbd9eef14a7 Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Thu, 12 Mar 2026 00:06:24 +0330 Subject: [PATCH] Revert "fix: bypass broken Nexus, use nuget.org + local proto build" This reverts commit 7147e9930f75e314cb5672932a4d8b23ce6c0e26. --- .gitea/workflows/kub-deploy.yml | 15 --------------- src/BackOffice/Dockerfile | 3 +-- src/BackOffice/NuGet.config | 11 ++++++++--- 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/kub-deploy.yml b/.gitea/workflows/kub-deploy.yml index b45256f..9e15309 100644 --- a/.gitea/workflows/kub-deploy.yml +++ b/.gitea/workflows/kub-deploy.yml @@ -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 diff --git a/src/BackOffice/Dockerfile b/src/BackOffice/Dockerfile index a0c6b4b..5b08d14 100644 --- a/src/BackOffice/Dockerfile +++ b/src/BackOffice/Dockerfile @@ -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 diff --git a/src/BackOffice/NuGet.config b/src/BackOffice/NuGet.config index 474b477..6402f43 100644 --- a/src/BackOffice/NuGet.config +++ b/src/BackOffice/NuGet.config @@ -2,10 +2,15 @@ - - - + + + + + + + +