Skip to content

Commit

Permalink
Fix deploy toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalvanderheiden committed Apr 26, 2024
1 parent d443a42 commit f472f13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy-apis.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ if ($? -eq $true) {
# Get environment variables
$azdenv = azd env get-values --output json | ConvertFrom-Json

if($azdenv.DEPLOY_AZURE_APIM_TO_APIC) {
if($azdenv.DEPLOY_AZURE_APIM_TO_APIC -eq "true") {
# Deploy Azure APIM APIs to APIC
./scripts/azure-apim-discovery.ps1
}
else {
Write-Host "Skipping API Management APIs deployment to APIC"
}

if($azdenv.DEPLOY_SAP_APIM_TO_APIC) {
if($azdenv.DEPLOY_SAP_APIM_TO_APIC -eq "true") {
# Deploy SAP APIM APIs to APIC
./scripts/sap-apim-discovery.ps1
}
Expand Down

0 comments on commit f472f13

Please sign in to comment.