Skip to content

Commit 137ce23

Browse files
updated the azure.yaml with new post deployment script
1 parent 074f9c4 commit 137ce23

1 file changed

Lines changed: 38 additions & 3 deletions

File tree

azure.yaml

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,42 @@ requiredVersions:
77
hooks:
88
postdeploy:
99
windows:
10-
run: infra/scripts/post_deploy.ps1
10+
run: |
11+
# Detect if running in Git Bash or similar Bash environment
12+
if ($env:SHELL -like "*bash*" -or $env:MSYSTEM) {
13+
# Running in Git Bash/MSYS2 environment
14+
Write-Host ""
15+
Write-Host "===============================================================" -ForegroundColor Yellow
16+
Write-Host " POST-DEPLOYMENT STEPS (Bash)" -ForegroundColor Green
17+
Write-Host "===============================================================" -ForegroundColor Yellow
18+
Write-Host ""
19+
20+
Write-Host " Upload Team Configurations, index sample data and create the Knowledge base from content Packs" -ForegroundColor White
21+
Write-Host " 👉 Run the following command in Bash:" -ForegroundColor White
22+
Write-Host " bash infra/scripts/post_deploy.sh" -ForegroundColor Cyan
23+
Write-Host ""
24+
25+
Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
26+
Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
27+
Write-Host ""
28+
} else {
29+
# Running in PowerShell
30+
Write-Host ""
31+
Write-Host "===============================================================" -ForegroundColor Yellow
32+
Write-Host " POST-DEPLOYMENT STEP (PowerShell) " -ForegroundColor Green
33+
Write-Host "===============================================================" -ForegroundColor Yellow
34+
Write-Host ""
35+
36+
Write-Host " Upload Team Configurations, index sample data and create the Knowledge base from content Packs" -ForegroundColor White
37+
Write-Host " 👉 Run the following command in PowerShell:" -ForegroundColor White
38+
Write-Host " infra\scripts\post_deploy.ps1" -ForegroundColor Cyan
39+
Write-Host ""
40+
41+
Write-Host "🌐 Access your deployed Frontend application at:" -ForegroundColor Green
42+
Write-Host " https://$env:webSiteDefaultHostname" -ForegroundColor Cyan
43+
Write-Host ""
44+
}
45+
1146
shell: pwsh
1247
interactive: true
1348
posix:
@@ -23,9 +58,9 @@ hooks:
2358
printf "${Green} POST-DEPLOYMENT STEPS (Bash)\n"
2459
printf "${Yellow}===============================================================${NC}\n\n"
2560
26-
printf "Upload Team Configurations and index sample data:\n"
61+
printf "Upload Team Configurations, index sample data and create the Knowledge base from content Packs:\n"
2762
printf " 👉 Run the following command in Bash:\n"
28-
printf " ${Blue}bash infra/scripts/selecting_team_config_and_data.sh${NC}\n\n"
63+
printf " ${Blue}bash infra/scripts/post_deploy.sh${NC}\n\n"
2964
3065
printf "🌐 Access your deployed Frontend application at:\n"
3166
printf " ${Blue}https://%s${NC}\n\n" "$webSiteDefaultHostname"

0 commit comments

Comments
 (0)