parse url
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jeffrey C. Ollie 2024-09-07 22:25:56 -05:00
parent d699087e20
commit 8751eeaf9b
Signed by: jeff
GPG key ID: 6F86035A6D97044E

View file

@ -113,7 +113,7 @@ def main [
} else {
$registry
}
) | parse --regex "(?:https?://)?(?P<rest>.*)" | get 0.rest
) | from url | get 0.rest
let repository = (
if ($repository | is-empty) {
@ -130,7 +130,7 @@ def main [
} else {
$repository
}
)
) | url parse | url join
regctl registry login $registry --user $auth.username --pass $auth.password