From 04e3cc7913ad3e90a1e817c21842963e1a067167 Mon Sep 17 00:00:00 2001 From: qxa Date: Mon, 29 Dec 2025 17:40:52 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index aea78cd..b059e21 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,8 @@ docker -v if [ -n "$INPUT_USERNAME" ]; then - echo "$INPUT_PASSWORD" | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin + # echo "$INPUT_PASSWORD" | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin + docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD cat ~/.docker/config.json if [ ! -f ~/.docker/config.json ] || ! cat ~/.docker/config.json | grep -q "$INPUT_REGISTRY"; then echo "登录失败"