Skip to content

Commit

Permalink
ci: set environment variables with admin connection string for databa…
Browse files Browse the repository at this point in the history
…se-migrator
  • Loading branch information
tnotheis committed Apr 24, 2024
1 parent cdb0729 commit 87d71e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .ci/docker-compose.test.postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .ci/docker-compose.test.sqlserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87d71e7

Please sign in to comment.