From c30b6798f556423b5625488541064e8f869dbe9b Mon Sep 17 00:00:00 2001 From: qxa Date: Mon, 29 Dec 2025 16:19:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20entrypoint.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entrypoint.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index fcf27ef..aea78cd 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,8 +4,8 @@ docker -v if [ -n "$INPUT_USERNAME" ]; then echo "$INPUT_PASSWORD" | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin - - if [ ! -f /root/.docker/config.json ] || ! cat /root/.docker/config.json | grep -q "$INPUT_REGISTRY"; then + cat ~/.docker/config.json + if [ ! -f ~/.docker/config.json ] || ! cat ~/.docker/config.json | grep -q "$INPUT_REGISTRY"; then echo "登录失败" exit 1 fi @@ -55,7 +55,6 @@ else fi if [ -n "$INPUT_SCRIPT" ]; then - echo "存在自定义脚本" - echo "$INPUT_SCRIPT" + echo "存在自定义脚本:$INPUT_SCRIPT" evel "$INPUT_SCRIPT" fi