This commit is contained in:
parent
29fcc18b74
commit
d37e5d6d32
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue