diff --git a/.github/workflows/build-and-dockerize.yml b/.github/workflows/build-and-dockerize.yml index bda76adc..7fb4ebe5 100644 --- a/.github/workflows/build-and-dockerize.yml +++ b/.github/workflows/build-and-dockerize.yml @@ -13,7 +13,7 @@ jobs: # Label used to access the service container postgres: # Docker Hub image - image: postgres:15-alpine + image: postgres:17-alpine ports: - 5432:5432 # Provide the password for postgres @@ -32,13 +32,13 @@ jobs: - 10000:10000 - 10001:10001 - 10002:10002 - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' dotnet-quality: 'preview' - name: Install dependencies run: dotnet restore diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0c680c2d..b15fc4c0 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -14,7 +14,7 @@ jobs: actions: read contents: read security-events: write - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Initialize CodeQL @@ -24,7 +24,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' dotnet-quality: 'preview' - name: Autobuild uses: github/codeql-action/autobuild@v3 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 48f30207..941b1bdd 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -10,7 +10,7 @@ env: IMAGE_NAME: netcoreboilerplate jobs: build-docker-test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 if: github.event_name == 'pull_request' steps: - uses: actions/checkout@v4 @@ -32,7 +32,7 @@ jobs: with: sarif_file: 'trivy-results.sarif' build-push-docker: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 if: github.event_name == 'push' steps: - uses: actions/checkout@v4 diff --git a/BervProject.WebApi.Boilerplate/BervProject.WebApi.Boilerplate.csproj b/BervProject.WebApi.Boilerplate/BervProject.WebApi.Boilerplate.csproj index 52f97470..7e1b2747 100644 --- a/BervProject.WebApi.Boilerplate/BervProject.WebApi.Boilerplate.csproj +++ b/BervProject.WebApi.Boilerplate/BervProject.WebApi.Boilerplate.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 BervProject.WebApi.Boilerplate @@ -31,7 +31,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -39,7 +39,7 @@ - + diff --git a/BervProject.WebApi.Integration.Test/BervProject.WebApi.Integration.Test.csproj b/BervProject.WebApi.Integration.Test/BervProject.WebApi.Integration.Test.csproj index ca6a27c5..fb8c6bf6 100644 --- a/BervProject.WebApi.Integration.Test/BervProject.WebApi.Integration.Test.csproj +++ b/BervProject.WebApi.Integration.Test/BervProject.WebApi.Integration.Test.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable enable @@ -9,7 +9,7 @@ - + diff --git a/BervProject.WebApi.Test/BervProject.WebApi.Test.csproj b/BervProject.WebApi.Test/BervProject.WebApi.Test.csproj index e34e6235..313212d5 100644 --- a/BervProject.WebApi.Test/BervProject.WebApi.Test.csproj +++ b/BervProject.WebApi.Test/BervProject.WebApi.Test.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 false diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ea48b5c7..1dca922a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,12 +9,12 @@ trigger: - main pool: - vmImage: 'ubuntu-22.04' + vmImage: 'ubuntu-24.04' resources: containers: - container: postgres - image: postgres:15-alpine + image: postgres:17-alpine env: POSTGRES_PASSWORD: postgres POSTGRES_DB: testdb @@ -30,7 +30,7 @@ resources: variables: buildConfiguration: 'Release' imageName: 'berviantoleo/net-core-boilerplate' - dotnetSdkVersion: '8.0.x' + dotnetSdkVersion: '9.0.x' postgresConnectionString: 'Host=localhost;Database=testdb;Username=postgres;Password=postgres' jobs: