更新 entrypoint.sh
This commit is contained in:
parent
ec18930bef
commit
d76178d00d
|
|
@ -4,8 +4,10 @@ docker -v
|
|||
|
||||
if [ -n "$INPUT_USERNAME" ]; then
|
||||
# echo "$INPUT_PASSWORD" | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin
|
||||
docker -v
|
||||
echo "docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD"
|
||||
docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD
|
||||
ls . -R -al
|
||||
cat ~/.docker/config.json
|
||||
if [ ! -f ~/.docker/config.json ] || ! cat ~/.docker/config.json | grep -q "$INPUT_REGISTRY"; then
|
||||
echo "登录失败"
|
||||
|
|
|
|||
Loading…
Reference in New Issue