This commit is contained in:
qxa 2025-12-31 15:05:17 +08:00
parent 29fcc18b74
commit d37e5d6d32
1 changed files with 2 additions and 6 deletions

View File

@ -4,12 +4,8 @@ export DOCKER_API_VERSION=1.41
docker -v
if [ -n "$INPUT_USERNAME" ]; then
# echo "$INPUT_PASSWORD" | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin
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
cat ~/.docker/config.json
echo "$INPUT_PASSWORD" | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin
if [ ! -f ~/.docker/config.json ] || ! cat ~/.docker/config.json | grep -q "$INPUT_REGISTRY"; then
echo "登录失败"
exit 1