13 lines
216 B

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