diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e3d59d8..eaade34 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -43,7 +43,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f0ce111..e1839f6 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -19,7 +19,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore - name: Build diff --git a/src/LoanRepaymentApi/Dockerfile b/src/LoanRepaymentApi/Dockerfile index f4d62bf..cf0dffb 100644 --- a/src/LoanRepaymentApi/Dockerfile +++ b/src/LoanRepaymentApi/Dockerfile @@ -1,9 +1,7 @@ -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app -EXPOSE 80 -EXPOSE 443 -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["LoanRepaymentApi.csproj", "."] RUN dotnet restore "LoanRepaymentApi.csproj" diff --git a/src/LoanRepaymentApi/LoanRepaymentApi.csproj b/src/LoanRepaymentApi/LoanRepaymentApi.csproj index d404c8f..904eb64 100644 --- a/src/LoanRepaymentApi/LoanRepaymentApi.csproj +++ b/src/LoanRepaymentApi/LoanRepaymentApi.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable Linux diff --git a/test/LoanRepaymentApi.Integration.Tests/LoanRepaymentApi.Integration.Tests.csproj b/test/LoanRepaymentApi.Integration.Tests/LoanRepaymentApi.Integration.Tests.csproj index a304e04..4f4a15f 100644 --- a/test/LoanRepaymentApi.Integration.Tests/LoanRepaymentApi.Integration.Tests.csproj +++ b/test/LoanRepaymentApi.Integration.Tests/LoanRepaymentApi.Integration.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable false @@ -9,7 +9,7 @@ - + diff --git a/test/LoanRepaymentApi.Unit.Tests/LoanRepaymentApi.Unit.Tests.csproj b/test/LoanRepaymentApi.Unit.Tests/LoanRepaymentApi.Unit.Tests.csproj index 6d8e1e9..d132b21 100644 --- a/test/LoanRepaymentApi.Unit.Tests/LoanRepaymentApi.Unit.Tests.csproj +++ b/test/LoanRepaymentApi.Unit.Tests/LoanRepaymentApi.Unit.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable false LoanRepaymentApi.Tests