-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-build.ps1
More file actions
24 lines (18 loc) · 999 Bytes
/
check-build.ps1
File metadata and controls
24 lines (18 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env pwsh
# فحص حالة البناء في ACR
param([string]$BuildId = "ch8")
Write-Host "`n🔍 فحص حالة البناء: $BuildId`n" -ForegroundColor Cyan
az acr task logs -r cometxreg --run-id $BuildId --output table
$status = az acr task show-run -r cometxreg --run-id $BuildId --query "status" -o tsv
Write-Host "`n📊 الحالة: " -NoNewline
switch ($status) {
"Succeeded" { Write-Host "✅ نجح" -ForegroundColor Green }
"Running" { Write-Host "⏳ جاري التنفيذ" -ForegroundColor Yellow }
"Failed" { Write-Host "❌ فشل" -ForegroundColor Red }
default { Write-Host "$status" -ForegroundColor Gray }
}
if ($status -eq "Succeeded") {
Write-Host "`n🎉 الصورة جاهزة: cometxreg.azurecr.io/gratech-cometx:latest`n" -ForegroundColor Green
Write-Host "📌 الخطوة التالية: تحديث Container Apps" -ForegroundColor Cyan
Write-Host " .\update-container-apps.ps1`n" -ForegroundColor White
}