From 7fe415de63104dd3b76ab0c725db090b2b470dff Mon Sep 17 00:00:00 2001 From: luorijun Date: Fri, 27 Feb 2026 16:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9C=AC=E5=9C=B0=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 publish.ps1 diff --git a/publish.ps1 b/publish.ps1 new file mode 100644 index 0000000..d510def --- /dev/null +++ b/publish.ps1 @@ -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])