From bb53166ad0c135e100b96c8888781c93a7e9e0e7 Mon Sep 17 00:00:00 2001 From: Bervianto Leo Pratama Date: Fri, 29 Nov 2024 08:21:04 +0700 Subject: [PATCH 1/4] feat: update net9 --- .../BervProject.WebApi.Boilerplate.csproj | 6 +++--- .../BervProject.WebApi.Integration.Test.csproj | 4 ++-- BervProject.WebApi.Test/BervProject.WebApi.Test.csproj | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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 From 2b18070d4fafe8f54f70220199f90ead6e733dbe Mon Sep 17 00:00:00 2001 From: Bervianto Leo Pratama Date: Fri, 29 Nov 2024 08:23:25 +0700 Subject: [PATCH 2/4] feat: update ci --- .github/workflows/build-and-dockerize.yml | 4 ++-- .github/workflows/codeql.yml | 4 ++-- .github/workflows/docker.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-dockerize.yml b/.github/workflows/build-and-dockerize.yml index bda76adc..e8bfa766 100644 --- a/.github/workflows/build-and-dockerize.yml +++ b/.github/workflows/build-and-dockerize.yml @@ -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 From 4e1d122a211cc2cbb39097cae037b1b5dd8ef116 Mon Sep 17 00:00:00 2001 From: Bervianto Leo Pratama Date: Fri, 29 Nov 2024 08:30:04 +0700 Subject: [PATCH 3/4] feat: update azure --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ea48b5c7..41fe381b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,7 +9,7 @@ trigger: - main pool: - vmImage: 'ubuntu-22.04' + vmImage: 'ubuntu-24.04' resources: containers: @@ -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: From c1f8b84ebc643d373975f783c81dba9477fd9e4f Mon Sep 17 00:00:00 2001 From: Bervianto Leo Pratama Date: Fri, 29 Nov 2024 08:33:20 +0700 Subject: [PATCH 4/4] feat: update db --- .github/workflows/build-and-dockerize.yml | 2 +- azure-pipelines.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-dockerize.yml b/.github/workflows/build-and-dockerize.yml index e8bfa766..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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 41fe381b..1dca922a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,7 @@ pool: resources: containers: - container: postgres - image: postgres:15-alpine + image: postgres:17-alpine env: POSTGRES_PASSWORD: postgres POSTGRES_DB: testdb