From 169c284795a03de4422354496bef1e9bcec84fe8 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Fri, 14 Nov 2025 23:24:40 +1000 Subject: [PATCH] fix deploy --- iac/Deploy/Deploy.csproj | 6 ++++++ iac/Deploy/Program.cs | 4 +++- iac/Deploy/appsettings.json | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 iac/Deploy/appsettings.json diff --git a/iac/Deploy/Deploy.csproj b/iac/Deploy/Deploy.csproj index c98cd5b..81f1d98 100644 --- a/iac/Deploy/Deploy.csproj +++ b/iac/Deploy/Deploy.csproj @@ -11,4 +11,10 @@ + + + PreserveNewest + + + diff --git a/iac/Deploy/Program.cs b/iac/Deploy/Program.cs index b0f65e9..78aff39 100644 --- a/iac/Deploy/Program.cs +++ b/iac/Deploy/Program.cs @@ -6,7 +6,8 @@ using ParallelPipelines.Host; var builder = Host.CreateApplicationBuilder(args); builder - .Configuration.AddJsonFile("appsettings.Development.json", true) + .Configuration.SetBasePath(AppContext.BaseDirectory) + .AddJsonFile("appsettings.json", false) .AddUserSecrets() .AddEnvironmentVariables(); @@ -17,6 +18,7 @@ builder.Services.AddParallelPipelines( config.Local.OutputSummaryToFile = true; config.Cicd.OutputSummaryToGithubStepSummary = true; config.Cicd.WriteCliCommandOutputsToSummary = true; + config.AllowedEnvironmentNames = ["prod"]; } ); builder.Services diff --git a/iac/Deploy/appsettings.json b/iac/Deploy/appsettings.json new file mode 100644 index 0000000..b4e20ea --- /dev/null +++ b/iac/Deploy/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Microsoft.Hosting.Lifetime": "Warning" + } + }, + "ParallelPipelinesEnvironment": "prod" +}