Skip to content

Commit 5532fa0

Browse files
committed
Fixed Docker images config by copying Directory.packages.props
1 parent 8fb2633 commit 5532fa0

File tree

7 files changed

+9
-1
lines changed

7 files changed

+9
-1
lines changed

.github/workflows/build.docker.helpdesk.wolverine.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
uses: docker/build-push-action@v4
3535
with:
3636
context: "./Sample/Helpdesk.Wolverine/Helpdesk.Api"
37+
build-contexts: |
38+
root=.
3739
push: false
3840
tags: oskardudycz/eventsourcing.netcore.helpdesk.wolverine:latest
3941
build-args: |

.github/workflows/build.docker.helpdesk.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
uses: docker/build-push-action@v4
3535
with:
3636
context: "./Sample/Helpdesk/Helpdesk.Api"
37+
build-contexts: |
38+
root=.
3739
push: false
3840
tags: oskardudycz/eventsourcing.netcore.helpdesk:latest
3941
build-args: |

Core.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<AnalysisLevel>latest</AnalysisLevel>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.13.2" PrivateAssets="All"/>
9+
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" PrivateAssets="All"/>
1010
</ItemGroup>
1111
</Project>

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<PackageVersion Include="Microsoft.Extensions.ServiceDiscovery" Version="9.0.0" />
5454
<PackageVersion Include="Microsoft.Extensions.TimeProvider.Testing" Version="9.2.0" />
5555
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
56+
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.13.2" />
5657
<PackageVersion Include="MongoDB.Driver" Version="3.2.1" />
5758
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
5859
<PackageVersion Include="Npgsql" Version="8.0.6" />

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WORKDIR /app
1010

1111
COPY ./.editorconfig ./
1212
COPY ./Directory.Build.props ./
13+
COPY ./Directory.Packages.props ./
1314
COPY ./Core.Build.props ./
1415
COPY ./Core/Core.csproj ./Core/
1516
COPY ./Core.Serialization/Core.Serialization.csproj ./Core.Serialization/

Sample/Helpdesk.Wolverine/Helpdesk.Api/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ARG run_codegen=true
1212
# Setup working directory for project
1313
WORKDIR /app
1414

15+
COPY --from=root Directory.Packages.props ./
1516
COPY ./${project_name}.csproj ./
1617

1718
# Restore nuget packages

Sample/Helpdesk/Helpdesk.Api/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ARG run_codegen=true
1212
# Setup working directory for project
1313
WORKDIR /app
1414

15+
COPY --from=root Directory.Packages.props ./
1516
COPY ./${project_name}.csproj ./
1617

1718
# Restore nuget packages

0 commit comments

Comments
 (0)