From cd0fb2fa5739edf64621426bbb22a1e278378473 Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Thu, 12 Mar 2026 00:06:33 +0330 Subject: [PATCH] Revert "fix: bypass broken Nexus, use nuget.org + local proto build" This reverts commit 4dc7b522895ebd959ab335ed48b6e2be1e5c1938. --- .gitea/workflows/kub-deploy.yml | 15 --------------- src/FrontOffice.Main/Dockerfile | 3 +-- src/FrontOffice.Main/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 683a6d6..606a25a 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/FrontOffice.Main/Dockerfile b/src/FrontOffice.Main/Dockerfile index f2e6aca..0320861 100644 --- a/src/FrontOffice.Main/Dockerfile +++ b/src/FrontOffice.Main/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 ["FrontOffice.Main/NuGet.config", "NuGet.config"] -COPY ["nupkg/", "nupkg/"] COPY ["FrontOffice.Main/FrontOffice.Main.csproj", "FrontOffice.Main/"] # Restore dependencies diff --git a/src/FrontOffice.Main/NuGet.config b/src/FrontOffice.Main/NuGet.config index 474b477..6402f43 100644 --- a/src/FrontOffice.Main/NuGet.config +++ b/src/FrontOffice.Main/NuGet.config @@ -2,10 +2,15 @@ - - - + + + + + + + +