Skip to content

Commit

Permalink
Update config generation
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhulen committed Aug 30, 2023
1 parent 7b807b0 commit 50a1ea7
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions deploy/powershell/Generate-Config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,20 @@ $publisherSettingsPath=$(./Join-Path-Recursively -pathParts $publisherSettings.S
& ./Token-Replace.ps1 -inputFile $publisherSettingsTemplatePath -outputFile $publisherSettingsPath -tokens $tokens
Pop-Location

$functionappSettingsTemplate="..,..,src,CoreClaims.FunctionApp,local.settings.template.json"
$functionappSettings="..,..,src,CoreClaims.FunctionApp,local.settings.json"
$webapiSettingsTemplate="..,..,src,CoreClaims.WebAPI,appsettings.Development.template.json"
$webapiSettings="..,..,src,CoreClaims.WebAPI,appsettings.Development.json"
Push-Location $($MyInvocation.InvocationName | Split-Path)
$functionappSettingsTemplatePath=$(./Join-Path-Recursively -pathParts $functionappSettingsTemplate.Split(","))
$functionappSettingsPath=$(./Join-Path-Recursively -pathParts $functionappSettings.Split(","))
& ./Token-Replace.ps1 -inputFile $functionappSettingsTemplatePath -outputFile $functionappSettingsPath -tokens $tokens
$webapiSettingsTemplatePath=$(./Join-Path-Recursively -pathParts $webapiSettingsTemplate.Split(","))
$webapiSettingsPath=$(./Join-Path-Recursively -pathParts $webapiSettings.Split(","))
& ./Token-Replace.ps1 -inputFile $webapiSettingsTemplatePath -outputFile $webapiSettingsPath -tokens $tokens
Pop-Location

$workerserviceSettingsTemplate="..,..,src,CoreClaims.WorkerService,appsettings.Development.template.json"
$workerserviceSettings="..,..,src,CoreClaims.WorkerService,appsettings.Development.json"
Push-Location $($MyInvocation.InvocationName | Split-Path)
$workerserviceSettingsTemplatePath=$(./Join-Path-Recursively -pathParts $workerserviceSettingsTemplate.Split(","))
$workerserviceSettingsPath=$(./Join-Path-Recursively -pathParts $workerserviceSettings.Split(","))
& ./Token-Replace.ps1 -inputFile $workerserviceSettingsTemplatePath -outputFile $workerserviceSettingsPath -tokens $tokens
Pop-Location

$coreClaimsDatalakeTemplate="..,..,synapse,linkedService,CoreClaimsDataLake.template.json"
Expand Down

0 comments on commit 50a1ea7

Please sign in to comment.