更新 entrypoint.sh

This commit is contained in:
qxa 2025-12-29 17:40:52 +08:00
parent c30b6798f5
commit 04e3cc7913
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@
docker -v docker -v
if [ -n "$INPUT_USERNAME" ]; then 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 cat ~/.docker/config.json
if [ ! -f ~/.docker/config.json ] || ! cat ~/.docker/config.json | grep -q "$INPUT_REGISTRY"; then if [ ! -f ~/.docker/config.json ] || ! cat ~/.docker/config.json | grep -q "$INPUT_REGISTRY"; then
echo "登录失败" echo "登录失败"