AEG-X-004: deploy DbUp migrations with release artifact #11

Merged
kjh2064 merged 5 commits from fix/deploy-db-migrator-migrations into main 2026-08-06 15:21:23 +09:00
Showing only changes of commit b9e4fb0146 - Show all commits
+6 -4
View File
@@ -35,7 +35,9 @@ jobs:
POSTGRES_DB: kartsell POSTGRES_DB: kartsell
POSTGRES_USER: kartsell POSTGRES_USER: kartsell
POSTGRES_PASSWORD: kartsell POSTGRES_PASSWORD: kartsell
ports: ["5432:5432"] # The Gitea runner already uses host port 5432 for its production tunnel.
# Keep the service isolated on a dedicated host port for CI.
ports: ["15432:5432"]
options: >- options: >-
--health-cmd "pg_isready -U kartsell" --health-cmd "pg_isready -U kartsell"
--health-interval 10s --health-interval 10s
@@ -50,16 +52,16 @@ jobs:
- run: dotnet build KArtSell.sln --no-restore -c Release - run: dotnet build KArtSell.sln --no-restore -c Release
- run: dotnet run --project src/KArtSell.DbMigrator -c Release --no-build - run: dotnet run --project src/KArtSell.DbMigrator -c Release --no-build
env: env:
KARTSELL_POSTGRES: Host=localhost;Port=5432;Database=kartsell;Username=kartsell;Password=kartsell KARTSELL_POSTGRES: Host=localhost;Port=15432;Database=kartsell;Username=kartsell;Password=kartsell
- run: dotnet run --project src/KArtSell.DbMigrator -c Release --no-build - run: dotnet run --project src/KArtSell.DbMigrator -c Release --no-build
env: env:
KARTSELL_POSTGRES: Host=localhost;Port=5432;Database=kartsell;Username=kartsell;Password=kartsell KARTSELL_POSTGRES: Host=localhost;Port=15432;Database=kartsell;Username=kartsell;Password=kartsell
- name: Run backend tests with hang evidence - name: Run backend tests with hang evidence
run: >- run: >-
dotnet test KArtSell.sln --no-build -c Release --logger trx dotnet test KArtSell.sln --no-build -c Release --logger trx
--blame-hang --blame-hang-timeout 2m --blame-hang --blame-hang-timeout 2m
env: env:
KARTSELL_POSTGRES: Host=localhost;Port=5432;Database=kartsell;Username=kartsell;Password=kartsell KARTSELL_POSTGRES: Host=localhost;Port=15432;Database=kartsell;Username=kartsell;Password=kartsell
- name: Check OpenAPI Breaking Changes (AEG-X-008) - name: Check OpenAPI Breaking Changes (AEG-X-008)
run: | run: |