This step grabs the registry URL from a docker service connection and sets the variable ContainerRegistryParser.Url.
Example of use in pipeline:
- template: templates/steps/ContainerRegistryParser.yml@pipelineAccessories
parameters:
containerRegistry: "dockerhub"
- pwsh: echo $(ContainerRegistryParser.Url) # Outputs i.e. docker.io