fix: Replace COPY --from=rootconfig with direct nuget.config copy

Docker additional_contexts with --from=rootconfig is not supported by Kaniko.
Changed to copy nuget.config directly from build context root.

- CI: pipeline already copies nuget.config to submodule root
- Docker Compose: users must run ./prepare-build.sh first
This commit is contained in:
ruberoid 2025-10-28 00:32:59 +04:00
parent 3cf29a5aa1
commit 1a55061e4b
2 changed files with 10 additions and 4 deletions

View File

@ -16,8 +16,11 @@ RUN apt-get update && \
update-ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Copy nuget.config from parent repository (via additional_contexts)
COPY --from=rootconfig nuget.config /root/.nuget/NuGet/NuGet.Config
# Copy nuget.config from build context root
# Must be copied to submodule root before building:
# - CI: pipeline copies it with "cp nuget.config text-matcher/"
# - Docker Compose: run ./prepare-build.sh first
COPY nuget.config /root/.nuget/NuGet/NuGet.Config
COPY . .

View File

@ -10,8 +10,11 @@ RUN apt-get update && \
update-ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Copy nuget.config from parent repository (via additional_contexts)
COPY --from=rootconfig nuget.config /root/.nuget/NuGet/NuGet.Config
# Copy nuget.config from build context root
# Must be copied to submodule root before building:
# - CI: pipeline copies it with "cp nuget.config text-matcher/"
# - Docker Compose: run ./prepare-build.sh first
COPY nuget.config /root/.nuget/NuGet/NuGet.Config
COPY . .