17 lines
477 B
PowerShell
17 lines
477 B
PowerShell
if (-not $args) {
|
|
Write-Error "需要指定版本号"
|
|
exit 1
|
|
}
|
|
|
|
$confrim = Read-Host "构建版本为 [jh-monitor:$($args[0])],是否继续?(y/n)"
|
|
if ($confrim -ne "y") {
|
|
Write-Host "已取消构建"
|
|
exit 0
|
|
}
|
|
|
|
docker build -t 43.226.58.254:53000/lanhu/jh-monitor:latest .
|
|
docker build -t 43.226.58.254:53000/lanhu/jh-monitor:$($args[0]) .
|
|
|
|
docker push 43.226.58.254:53000/lanhu/jh-monitor:latest
|
|
docker push 43.226.58.254:53000/lanhu/jh-monitor:$($args[0])
|