更新 entrypoint.sh

This commit is contained in:
qxa 2025-12-31 14:16:41 +08:00
parent 04e3cc7913
commit ec18930bef
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ 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"
docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD
cat ~/.docker/config.json
if [ ! -f ~/.docker/config.json ] || ! cat ~/.docker/config.json | grep -q "$INPUT_REGISTRY"; then