diff --git a/src/Fusion.Summary.Api/Deployment/k8s/deployment-pr-env.yml b/src/Fusion.Summary.Api/Deployment/k8s/deployment-pr-env.yml index 2f133913d..211f25610 100644 --- a/src/Fusion.Summary.Api/Deployment/k8s/deployment-pr-env.yml +++ b/src/Fusion.Summary.Api/Deployment/k8s/deployment-pr-env.yml @@ -66,6 +66,8 @@ spec: value: "{{clientId}}" - name: BuildNr value: "{{buildNr}}" + - name: PULL_REQUEST_ID + value: "{{prNumber}}" args: - /server diff --git a/src/Fusion.Summary.Api/Program.cs b/src/Fusion.Summary.Api/Program.cs index d54e57e85..fa0fcf5e0 100644 --- a/src/Fusion.Summary.Api/Program.cs +++ b/src/Fusion.Summary.Api/Program.cs @@ -30,10 +30,6 @@ var fusionEnvironment = builder.Configuration["FUSION_ENVIRONMENT"]; var databaseConnectionString = builder.Configuration.GetConnectionString(nameof(SummaryDbContext))!; -// TESTING -Console.WriteLine(databaseConnectionString); -// TESTING - builder.Services.AddControllers(); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddHealthChecks() @@ -116,7 +112,7 @@ #endregion Health probes -// TESTING +// TODO: TESTING using var scope = app.Services.CreateScope(); var dbContext = scope.ServiceProvider.GetRequiredService(); Console.WriteLine(dbContext.Database.GetConnectionString());