Fix quoting of login json template.

This commit is contained in:
redxef 2022-08-29 19:32:26 +02:00
parent aa289e7588
commit a954d8284b
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -4,7 +4,7 @@
DEFAULT_DOMAIN=docker.io DEFAULT_DOMAIN=docker.io
LEGACY_DEFAULT_DOMAIN=index.docker.io LEGACY_DEFAULT_DOMAIN=index.docker.io
DOCKER_LOGIN_FILE_TMPL='{"auths": { {{REGISTRY_URL}}: { "auth": {{BASE64_UNAME_PW}} }}}' DOCKER_LOGIN_FILE_TMPL='{"auths": { "{{REGISTRY_URL}}": { "auth": {{BASE64_UNAME_PW}} }}}'
fail() { fail() {
echo "Error:" "$@" 1>&2 echo "Error:" "$@" 1>&2
@ -67,7 +67,6 @@ if [ -n "$USERNAME" ]; then
fail "need to also give password when logging in" fail "need to also give password when logging in"
fi fi
docker_login "$(split_repo_domain "$REPOSITORY" | head -n1)" docker_login "$(split_repo_domain "$REPOSITORY" | head -n1)"
jq -r . < "$HOME/.docker/config.json"
fi fi
if [ -z "$REPOSITORY" ]; then if [ -z "$REPOSITORY" ]; then