13 lines
216 B

#!/bin/bash
set -e
. lib/common
cfg=$(relation-get registry-config) || {
err "registry-auth $TARGET_SERVICE_NAME is expected to set 'registry-config'"
exit 1
}
yaml_key_val_str "auth" "$cfg" | ini_merge