From 87d71e70219ad8e658ee0f2b84c45cb519d7da24 Mon Sep 17 00:00:00 2001 From: Timo Notheisen Date: Wed, 24 Apr 2024 17:26:03 +0200 Subject: [PATCH] ci: set environment variables with admin connection string for database-migrator --- .ci/docker-compose.test.postgres.yml | 5 +++++ .ci/docker-compose.test.sqlserver.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.ci/docker-compose.test.postgres.yml b/.ci/docker-compose.test.postgres.yml index 67ce0ffaf7..0c4a0045b6 100644 --- a/.ci/docker-compose.test.postgres.yml +++ b/.ci/docker-compose.test.postgres.yml @@ -35,6 +35,11 @@ services: Database__Provider: Postgres Database__ConnectionString: "Server=postgres;Database=enmeshed;User Id=devices;Password=Passw0rd;Port=5432" + database-migrator: + environment: + Infrastructure__SqlDatabase__Provider: Postgres + Infrastructure__SqlDatabase__ConnectionString: "Server=postgres;Database=enmeshed;User Id=postgres;Password=admin;Port=5432" + configs: Config: file: appsettings.override.postgres.json diff --git a/.ci/docker-compose.test.sqlserver.yml b/.ci/docker-compose.test.sqlserver.yml index b2d032b350..5b76f04a22 100644 --- a/.ci/docker-compose.test.sqlserver.yml +++ b/.ci/docker-compose.test.sqlserver.yml @@ -28,6 +28,11 @@ services: Database__Provider: SqlServer Database__ConnectionString: "Server=sqlserver;Database=enmeshed;User Id=devices;Password=Passw0rd;TrustServerCertificate=True" + database-migrator: + environment: + Infrastructure__SqlDatabase__Provider: SqlServer + Infrastructure__SqlDatabase__ConnectionString: "Server=sqlserver;Database=enmeshed;User Id=sa;Password=Passw0rd;TrustServerCertificate=True" + configs: Config: file: appsettings.override.sqlserver.json