My Build Pipeline has multiple “Push Image to Registry” tasks.
Each of these tasks pushes to multiple different container registries authenticated using different service connections present in the Azure DevOps Project.
I am trying create 1 Powershell script task; utilizing something like ForEach-Object -Parallel and push to each registry at once.
Problem:
Not able to figure out how to connect to each of the different registries using the Service Connection in Powershell script
1 is Azure container registry and Serv Conn Type is Azure Resource Manager with SPN Auth
2nd is GCP container reg and Serv Conn Type is Docker Registry using basic auth