When you create a new repo on GitHub as well as on Azure DevOps you just need to provide a
desired name for a new repo. The only difference is that GitHub adds '.git' suffix to its git repositories urls implicitly and Azure DevOps doesn't do so.
That is why in order to make docker build URL (for git repositories) working for Azure DevOps git repositories, the repository itself must be named with .git suffix (at least for now). This will make sure that resulting repo url will have .git suffix.
For more details please refer to (urlPathWithFragmentSuffix)
|
if IsURL(str) && urlPathWithFragmentSuffix.MatchString(str) { |
and
|
urlPathWithFragmentSuffix = regexp.MustCompile(".git(?:#.+)?$") |
That is why I'd like to suggest the following:
-
update documentaion with the note that .git url suffix is mandatory for git repositories in order to have this feature working;
-
think about other options regarding a more reliable/explicit way of referring to git repositories (in case of any)