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