fix deploy
This commit is contained in:
@@ -11,4 +11,10 @@
|
||||
<PackageReference Include="ParallelPipelines" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="appsettings.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -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<Program>()
|
||||
.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
|
||||
|
||||
8
iac/Deploy/appsettings.json
Normal file
8
iac/Deploy/appsettings.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Microsoft.Hosting.Lifetime": "Warning"
|
||||
}
|
||||
},
|
||||
"ParallelPipelinesEnvironment": "prod"
|
||||
}
|
||||
Reference in New Issue
Block a user