This commit is contained in:
parent
2f970d6725
commit
29fcc18b74
|
|
@ -1,5 +1,6 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
export DOCKER_API_VERSION=1.41
|
||||||
docker -v
|
docker -v
|
||||||
|
|
||||||
if [ -n "$INPUT_USERNAME" ]; then
|
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
|
echo "docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD">1.txt
|
||||||
cat 1.txt
|
cat 1.txt
|
||||||
docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD
|
docker login $INPUT_REGISTRY -u $INPUT_USERNAME -p $INPUT_PASSWORD
|
||||||
ls . -R -al
|
ls ~ -R -al
|
||||||
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