From a96c6f905a21b386c5961055a9743a7a7de20764 Mon Sep 17 00:00:00 2001 From: Alexey Zimarev Date: Fri, 16 Jun 2023 10:26:38 +0200 Subject: [PATCH] Copy the nuget config also --- .github/workflows/docker.yml | 1 + Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 81efea7..edfbf1c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,6 +4,7 @@ on: push: paths: - 'src/**' + - 'Dockerfile' branches: - 'main' tags: diff --git a/Dockerfile b/Dockerfile index ead9d33..1426e23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app ARG RUNTIME -COPY ./src/Directory.Build.props ./src/*/*.csproj ./src/ +COPY ./src/Directory.Build.props ./src/*/*.csproj ./NuGet.config ./src/ RUN for file in $(ls src/*.csproj); do mkdir -p ./${file%.*}/ && mv $file ./${file%.*}/; done RUN dotnet restore ./src/Eventuous.Connector -nowarn:msb3202,nu1503 -a $TARGETARCH