Skip to content

Commit

Permalink
Add PULL_REQUEST_ID env
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathanio123 committed Aug 23, 2024
1 parent 01ae8c6 commit 3667e45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/Fusion.Summary.Api/Deployment/k8s/deployment-pr-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ spec:
value: "{{clientId}}"
- name: BuildNr
value: "{{buildNr}}"
- name: PULL_REQUEST_ID
value: "{{prNumber}}"
args:
- /server

Expand Down
6 changes: 1 addition & 5 deletions src/Fusion.Summary.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -116,7 +112,7 @@

#endregion Health probes

// TESTING
// TODO: TESTING
using var scope = app.Services.CreateScope();
var dbContext = scope.ServiceProvider.GetRequiredService<SummaryDbContext>();
Console.WriteLine(dbContext.Database.GetConnectionString());
Expand Down

0 comments on commit 3667e45

Please sign in to comment.