From 8985df7625a77c9651e1d466bed65a22f0479a35 Mon Sep 17 00:00:00 2001 From: wmp <17516219072@163.com> Date: Fri, 6 Mar 2026 13:26:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0docker=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=20&=20=E5=8F=91=E5=B8=83v0.4.1=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- publish.ps1 | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 publish.ps1 diff --git a/package.json b/package.json index 21576bf..a411bd8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-app", - "version": "0.4.0", + "version": "0.4.1", "private": true, "scripts": { "dev": "next dev --turbopack", diff --git a/publish.ps1 b/publish.ps1 new file mode 100644 index 0000000..300e3bf --- /dev/null +++ b/publish.ps1 @@ -0,0 +1,16 @@ +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])