Skip to content

Commit ecbd315

Browse files
fix: added post-deployment script/command visible in the terminal after deployment
1 parent 8924ecb commit ecbd315

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

azure.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,35 @@ hooks:
3838
printf '\n'
3939
shell: sh
4040
interactive: true
41+
postprovision:
42+
windows:
43+
run: |
44+
Write-Host "===== Provisioning Complete =====" -ForegroundColor Green
45+
Write-Host "=> Next step: build and push container images to the dedicated ACR (remote build):" -ForegroundColor Yellow
46+
47+
# Check if running from bash/MINGW64 terminal
48+
if ($env:SHELL -like "*bash*" -or $env:TERM_PROGRAM -like "*git*" -or $env:MSYSTEM -eq "MINGW64") {
49+
Write-Host " bash ./scripts/build_and_push_images.sh" -ForegroundColor Cyan
50+
} else {
51+
Write-Host " ./scripts/build_and_push_images.ps1" -ForegroundColor Cyan
52+
}
53+
54+
Write-Host ""
55+
Write-Host "Web app URL: " -NoNewline
56+
Write-Host "$env:WEB_APP_URL" -ForegroundColor Cyan
57+
shell: pwsh
58+
continueOnError: false
59+
interactive: true
60+
posix:
61+
run: |
62+
echo "===== Provisioning Complete ====="
63+
echo "=> Next step: build and push container images to the dedicated ACR (remote build):"
64+
echo " bash ./scripts/build_and_push_images.sh"
65+
echo ""
66+
echo "Web app URL: $WEB_APP_URL"
67+
shell: sh
68+
continueOnError: false
69+
interactive: true
4170
deployment:
4271
mode: Incremental
4372
template: ./infra/main.bicep # Path to the main.bicep file inside the 'deployment' folder

0 commit comments

Comments
 (0)