Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nuget): update dotnet monorepo #275

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "9.0.2",
"version": "9.0.3",
"commands": [
"dotnet-ef"
],
Expand Down
38 changes: 19 additions & 19 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
</PropertyGroup>
<ItemGroup>
<!-- ASP.NET Packages -->
<PackageVersion Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.Components.QuickGrid" Version="9.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="9.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="9.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="9.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.2" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.3" />
<PackageVersion Include="Microsoft.AspNetCore.Components.QuickGrid" Version="9.0.3" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="9.0.3" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.3" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="9.0.3" />
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="9.0.3" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.3" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.3" />
<!-- Microsoft extension packages -->
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.Http.Polly" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="9.2.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.3" />
<PackageVersion Include="Microsoft.Extensions.Http.Polly" Version="9.0.3" />
<PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="9.3.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="9.0.3" />
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="9.0.3" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="9.0.3" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.3" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.3" />
<!-- OpenTelemetry -->
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.11.2" />
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.11.2" />
Expand Down Expand Up @@ -52,16 +52,16 @@
<PackageVersion Include="AWSSDK.Extensions.NETCore.Setup" Version="3.7.400" />
<PackageVersion Include="FuzzySharp" Version="2.0.2" />
<PackageVersion Include="Azure.Identity" Version="1.13.2" />
<PackageVersion Include="System.Drawing.Common" Version="9.0.2" />
<PackageVersion Include="System.Formats.Asn1" Version="9.0.2" />
<PackageVersion Include="System.Drawing.Common" Version="9.0.3" />
<PackageVersion Include="System.Formats.Asn1" Version="9.0.3" />
<!-- MassTransit -->
<PackageVersion Include="MassTransit" Version="8.3.7" />
<PackageVersion Include="MassTransit.RabbitMQ" Version="8.3.7" />
<PackageVersion Include="MassTransit.EntityFrameworkCore" Version="8.3.7" />
<PackageVersion Include="MassTransit.Grpc" Version="8.1.3" />
<!-- Database -->
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.2" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.3" />
<!-- Discord -->
<PackageVersion Include="NetCord" Version="1.0.0-alpha.349" />
<PackageVersion Include="NetCord.Services" Version="1.0.0-alpha.349" />
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "9.0.200",
"version": "9.0.202",
"rollForward": "latestPatch",
"allowPrerelease": false
}
Expand Down
4 changes: 2 additions & 2 deletions src/Dotbot.Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# renovate: datasource=dotnet-version depName=dotnet-runtime
ARG DOTNET_RUNTIME=mcr.microsoft.com/dotnet/aspnet:9.0.2-bookworm-slim
ARG DOTNET_RUNTIME=mcr.microsoft.com/dotnet/aspnet:9.0.3-bookworm-slim
# renovate: datasource=dotnet-version depName=dotnet-sdk
ARG DOTNET_SDK=mcr.microsoft.com/dotnet/sdk:9.0.200
ARG DOTNET_SDK=mcr.microsoft.com/dotnet/sdk:9.0.202

FROM ${DOTNET_RUNTIME} AS base
WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions src/Dotbot.Infrastructure/migration.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# renovate: datasource=dotnet-version depName=dotnet-runtime
ARG DOTNET_RUNTIME=mcr.microsoft.com/dotnet/aspnet:9.0.2-bookworm-slim
ARG DOTNET_RUNTIME=mcr.microsoft.com/dotnet/aspnet:9.0.3-bookworm-slim
# renovate: datasource=dotnet-version depName=dotnet-sdk
ARG DOTNET_SDK=mcr.microsoft.com/dotnet/sdk:9.0.200
ARG DOTNET_SDK=mcr.microsoft.com/dotnet/sdk:9.0.202

FROM ${DOTNET_RUNTIME} AS base
WORKDIR /app
Expand All @@ -24,15 +24,15 @@
COPY ["src/ServiceDefaults/", "ServiceDefaults"]

# Build the migrationbundle here
FROM build as migrationbuilder

Check warning on line 27 in src/Dotbot.Infrastructure/migration.Dockerfile

View workflow job for this annotation

GitHub Actions / build (Dotbot.Migration, src/Dotbot.Infrastructure/migration.Dockerfile)

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
ENV PATH $PATH:/root/.dotnet/tools

Check warning on line 28 in src/Dotbot.Infrastructure/migration.Dockerfile

View workflow job for this annotation

GitHub Actions / build (Dotbot.Migration, src/Dotbot.Infrastructure/migration.Dockerfile)

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
RUN dotnet tool install --global dotnet-ef
RUN mkdir /migrations
RUN dotnet ef migrations bundle -s /src/Dotbot.Api -p /src/Dotbot.Infrastructure -c DotbotContext --self-contained -r linux-x64 -o /migrations/migration

FROM ${DOTNET_RUNTIME} as initcontainer

Check warning on line 33 in src/Dotbot.Infrastructure/migration.Dockerfile

View workflow job for this annotation

GitHub Actions / build (Dotbot.Migration, src/Dotbot.Infrastructure/migration.Dockerfile)

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
ENV CONNECTIONSTRING=""
COPY --from=migrationbuilder /migrations /migrations
RUN chmod 755 /migrations/migration
WORKDIR /migrations
ENTRYPOINT ./migration --connection "$CONNECTIONSTRING"

Check warning on line 38 in src/Dotbot.Infrastructure/migration.Dockerfile

View workflow job for this annotation

GitHub Actions / build (Dotbot.Migration, src/Dotbot.Infrastructure/migration.Dockerfile)

JSONArgsRecommended: JSON arguments recommended for ENTRYPOINT to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
Loading