Fix case of variables in docker login.

This commit is contained in:
redxef 2022-08-29 19:16:53 +02:00
parent 2ac814ca42
commit 79c7b1701d
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -23,7 +23,7 @@ docker_login() {
# TODO: detect registry url # TODO: detect registry url
mkdir -p "$HOME/.docker" mkdir -p "$HOME/.docker"
echo "$DOCKER_LOGIN_FILE_TMPL" | \ echo "$DOCKER_LOGIN_FILE_TMPL" | \
sed -e "s|{{BASE64_UNAME_PW}}|$(printf '%s:%s' "$username" "$password" | base64)|g" \ sed -e "s|{{BASE64_UNAME_PW}}|$(printf '%s:%s' "$USERNAME" "$PASSWORD" | base64)|g" \
-e "s|{{REGISTRY_URL}}|$login_name|g" \ -e "s|{{REGISTRY_URL}}|$login_name|g" \
> "$HOME/.docker/config.json" > "$HOME/.docker/config.json"
} }