更新 entrypoint.sh

This commit is contained in:
qxa 2025-12-31 14:26:09 +08:00
parent ec18930bef
commit d76178d00d
1 changed files with 2 additions and 0 deletions

View File

@ -4,8 +4,10 @@ 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 -v
echo "docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD" echo "docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD"
docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD
ls . -R -al
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 "登录失败"