From 9f99325936ac1480c73d76e97ad0ef4489e8fe3c Mon Sep 17 00:00:00 2001 From: 3970260761 <3970260761@qq.com> Date: Wed, 11 Nov 2026 19:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=89=88=E8=84=9A=E6=9C=AC=E7=89=88?= =?UTF-8?q?=E6=9C=ACtag=E6=94=B9=E8=AF=BBpackage.json=EF=BC=8C=E6=B6=88?= =?UTF-8?q?=E9=99=A4v1.0.0=E4=B8=8EREADME=20v1.0.1=E6=BC=82=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/push_registry.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/push_registry.sh b/scripts/push_registry.sh index af21c7b..fe42dab 100644 --- a/scripts/push_registry.sh +++ b/scripts/push_registry.sh @@ -8,11 +8,12 @@ # 即可拉取(拉取是 GET 响应,不受请求体积限制影响)。 # # 用法:bash scripts/push_registry.sh [镜像:tag] [版本tag] -# 默认:unicut-src-unicut:latest → :latest + :v1.0.0 +# 默认:unicut-src-unicut:latest → :latest + :v set -euo pipefail IMG="${1:-unicut-src-unicut:latest}" -VERSION_TAG="${2:-v1.0.0}" +DEFAULT_VER="v$(grep -oP '"version":\s*"\K[^"]+' package.json | head -1)" +VERSION_TAG="${2:-${DEFAULT_VER:-v1.0.0}}" REG="192.168.68.19:3200" # 内网 Gitea(绕开公网 nginx) OWNER="jinghui" PKG="unicut"