This commit is contained in:
qxa 2025-12-31 15:01:43 +08:00
parent 2f970d6725
commit 29fcc18b74
1 changed files with 2 additions and 1 deletions

View File

@ -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 "登录失败"