fix deploy
This commit is contained in:
@@ -11,4 +11,10 @@
|
|||||||
<PackageReference Include="ParallelPipelines" />
|
<PackageReference Include="ParallelPipelines" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Update="appsettings.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ using ParallelPipelines.Host;
|
|||||||
var builder = Host.CreateApplicationBuilder(args);
|
var builder = Host.CreateApplicationBuilder(args);
|
||||||
|
|
||||||
builder
|
builder
|
||||||
.Configuration.AddJsonFile("appsettings.Development.json", true)
|
.Configuration.SetBasePath(AppContext.BaseDirectory)
|
||||||
|
.AddJsonFile("appsettings.json", false)
|
||||||
.AddUserSecrets<Program>()
|
.AddUserSecrets<Program>()
|
||||||
.AddEnvironmentVariables();
|
.AddEnvironmentVariables();
|
||||||
|
|
||||||
@@ -17,6 +18,7 @@ builder.Services.AddParallelPipelines(
|
|||||||
config.Local.OutputSummaryToFile = true;
|
config.Local.OutputSummaryToFile = true;
|
||||||
config.Cicd.OutputSummaryToGithubStepSummary = true;
|
config.Cicd.OutputSummaryToGithubStepSummary = true;
|
||||||
config.Cicd.WriteCliCommandOutputsToSummary = true;
|
config.Cicd.WriteCliCommandOutputsToSummary = true;
|
||||||
|
config.AllowedEnvironmentNames = ["prod"];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
builder.Services
|
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