Skip to content

Commit

Permalink
Update nuget packages and fix GitHub workflow to .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
JanneMattila committed Feb 3, 2025
1 parent d5e395c commit 9f64e16
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

- name: Restore dependencies
run: dotnet restore
Expand Down
4 changes: 2 additions & 2 deletions src/WebApp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://hub.docker.com/r/microsoft/dotnet
# Build image
FROM mcr.microsoft.com/dotnet/sdk:9.0.100-alpine3.20-amd64 AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0.102-alpine3.21-amd64 AS build

# Cache nuget restore
WORKDIR /src
Expand All @@ -15,7 +15,7 @@ RUN dotnet build "WebApp.csproj" -c Release -o /app/build
RUN dotnet publish "WebApp.csproj" -c Release -o /app/publish

# Release image
FROM mcr.microsoft.com/dotnet/aspnet:9.0.0-alpine3.20-amd64 AS final
FROM mcr.microsoft.com/dotnet/aspnet:9.0.1-alpine3.21-amd64 AS final

EXPOSE 8080
WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions src/WebApp/Full.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://hub.docker.com/r/microsoft/dotnet
# Build image
FROM mcr.microsoft.com/dotnet/sdk:9.0.100-noble-amd64 AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0.102-noble-amd64 AS build

# Install to build containers
# - gcc and libs
Expand Down Expand Up @@ -47,7 +47,7 @@ RUN dotnet build "WebApp.csproj" -c Release -o /app/build
RUN dotnet publish "WebApp.csproj" -c Release -o /app/publish

# Release image
FROM mcr.microsoft.com/dotnet/aspnet:9.0.0-noble-amd64 AS final
FROM mcr.microsoft.com/dotnet/aspnet:9.0.1-noble-amd64 AS final
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

EXPOSE 8080
Expand Down
8 changes: 4 additions & 4 deletions src/WebApp/WebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.13.1" />
<PackageReference Include="Azure.Identity" Version="1.13.2" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.23.0" />
<PackageReference Include="DnsClient" Version="1.8.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.2" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="StackExchange.Redis" Version="2.8.16" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" />
<PackageReference Include="StackExchange.Redis" Version="2.8.24" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
</ItemGroup>

</Project>

0 comments on commit 9f64e16

Please sign in to comment.