-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick-push.ps1
More file actions
41 lines (35 loc) · 1.54 KB
/
quick-push.ps1
File metadata and controls
41 lines (35 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env pwsh
# Quick Push Script for Memory-Optimized Images
# This script builds and pushes only the memory-optimized images
param(
[string]$Registry = "alphasudo2",
[string]$Tag = "memory-optimized",
[switch]$Help
)
if ($Help) {
Write-Host "🚀 Quick Push for Memory-Optimized Images" -ForegroundColor Cyan
Write-Host ""
Write-Host "Usage: .\quick-push.ps1 [OPTIONS]" -ForegroundColor Yellow
Write-Host ""
Write-Host "OPTIONS:" -ForegroundColor Green
Write-Host " -Registry <name> Docker registry/username (default: alphasudo2)"
Write-Host " -Tag <tag> Image tag (default: memory-optimized)"
Write-Host " -Help Show this help message"
exit 0
}
Write-Host "🚀 Quick Push for Memory-Optimized Images" -ForegroundColor Cyan
Write-Host "Registry: $Registry" -ForegroundColor Yellow
Write-Host "Tag: $Tag" -ForegroundColor Yellow
Write-Host ""
# Run the main build script with memory-optimized flag
& ./build-and-push-images.ps1 -Registry $Registry -Tag $Tag -MemoryOptimized
if ($LASTEXITCODE -eq 0) {
Write-Host ""
Write-Host "✅ All memory-optimized images pushed successfully!" -ForegroundColor Green
Write-Host ""
Write-Host "🎯 Quick deployment command:" -ForegroundColor Cyan
Write-Host "docker-compose -f docker-compose.memory-optimized.yml pull && docker-compose -f docker-compose.memory-optimized.yml up -d" -ForegroundColor White
} else {
Write-Host ""
Write-Host "❌ Some images failed to push. Check the output above." -ForegroundColor Red
}