新增本地构建脚本
This commit is contained in:
16
publish.ps1
Normal file
16
publish.ps1
Normal file
@@ -0,0 +1,16 @@
|
||||
if (-not $args) {
|
||||
Write-Error "需要指定版本号"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$confrim = Read-Host "构建版本为 [platform:$($args[0])],是否继续?(y/n)"
|
||||
if ($confrim -ne "y") {
|
||||
Write-Host "已取消构建"
|
||||
exit 0
|
||||
}
|
||||
|
||||
docker build -t 43.226.58.254:53000/lanhu/platform:latest .
|
||||
docker build -t 43.226.58.254:53000/lanhu/platform:$($args[0]) .
|
||||
|
||||
docker push 43.226.58.254:53000/lanhu/platform:latest
|
||||
docker push 43.226.58.254:53000/lanhu/platform:$($args[0])
|
||||
Reference in New Issue
Block a user