diff --git a/entrypoint.sh b/entrypoint.sh index ce45a8e..ed30ddd 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,6 @@ #! /bin/bash +export DOCKER_API_VERSION=1.41 docker -v if [ -n "$INPUT_USERNAME" ]; then @@ -7,7 +8,7 @@ if [ -n "$INPUT_USERNAME" ]; then echo "docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD">1.txt cat 1.txt docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD - ls . -R -al + ls ~ -R -al cat ~/.docker/config.json if [ ! -f ~/.docker/config.json ] || ! cat ~/.docker/config.json | grep -q "$INPUT_REGISTRY"; then echo "登录失败"