From 29fcc18b746daca4e9948cc142c770fbb08cc3d3 Mon Sep 17 00:00:00 2001 From: qxa Date: Wed, 31 Dec 2025 15:01:43 +0800 Subject: [PATCH] 1 --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 "登录失败"