Add build verification scripts and documentation
Some checks are pending
Build and Deploy / test-backend (push) Waiting to run
Build and Deploy / build-backend (push) Blocked by required conditions
Build and Deploy / build-admin (push) Waiting to run
Deploy to Production / build-backend (push) Waiting to run
Deploy to Production / deploy (push) Blocked by required conditions
Some checks are pending
Build and Deploy / test-backend (push) Waiting to run
Build and Deploy / build-backend (push) Blocked by required conditions
Build and Deploy / build-admin (push) Waiting to run
Deploy to Production / build-backend (push) Waiting to run
Deploy to Production / deploy (push) Blocked by required conditions
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
42
scripts/quick-verify.ps1
Normal file
42
scripts/quick-verify.ps1
Normal file
@@ -0,0 +1,42 @@
|
||||
# 快速验证构建结果
|
||||
|
||||
$Registry = "registry.667788.cool"
|
||||
$Tag = "latest"
|
||||
|
||||
Write-Host "=== 快速验证构建结果 ===" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
|
||||
$images = @(
|
||||
"$Registry/wecom-backend:$Tag",
|
||||
"$Registry/wecom-admin:$Tag",
|
||||
"$Registry/wecom-nginx:$Tag"
|
||||
)
|
||||
|
||||
$successCount = 0
|
||||
|
||||
foreach ($image in $images) {
|
||||
$result = docker images $image --format "{{.Repository}}:{{.Tag}}" 2>$null
|
||||
if ($result -and $result -eq $image) {
|
||||
Write-Host "✓ $image" -ForegroundColor Green
|
||||
$successCount++
|
||||
} else {
|
||||
Write-Host "✗ $image (未找到)" -ForegroundColor Red
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "结果: $successCount/3 个镜像已构建" -ForegroundColor $(if ($successCount -eq 3) { "Green" } else { "Yellow" })
|
||||
Write-Host ""
|
||||
|
||||
if ($successCount -eq 3) {
|
||||
Write-Host "✓ 所有镜像构建成功!" -ForegroundColor Green
|
||||
Write-Host ""
|
||||
Write-Host "验证推送:" -ForegroundColor Yellow
|
||||
Write-Host " docker login $Registry" -ForegroundColor Gray
|
||||
Write-Host " docker pull $Registry/wecom-backend:$Tag" -ForegroundColor Gray
|
||||
} else {
|
||||
Write-Host "⚠ 部分镜像未构建,请检查构建日志" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
Write-Host "重新构建:" -ForegroundColor Yellow
|
||||
Write-Host " .\scripts\build_and_push.ps1" -ForegroundColor Gray
|
||||
}
|
||||
Reference in New Issue
Block a user