添加docker构建脚本 & 发布v0.4.1版本

This commit is contained in:
wmp
2026-03-06 13:26:04 +08:00
parent 1b3110de87
commit 8985df7625
2 changed files with 17 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "my-app",
"version": "0.4.0",
"version": "0.4.1",
"private": true,
"scripts": {
"dev": "next dev --turbopack",

16
publish.ps1 Normal file
View File

@@ -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])