dotnet / sdk-container-builds

Libraries and build tooling to create container images from .NET projects using MSBuild
https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
MIT License
175 stars 30 forks source link

Pushing to ACR (Azure Container Registry) #553

Open dviry opened 4 months ago

dviry commented 4 months ago

Following the auth documentation did not work for me when pushing to ACR from an on-premise devops (with no docker installation).

I was trying the "last-resort" environment variables (as documented) with an Azure Service Principal, but that did not work either - not even with the DevOps Service Connection configured. Only the ACR Admin user/password combination worked (at least for me).

Might be worth mentioning this in the documentation - maybe even look into why the configured DevOps Service Connection does not work (would be the best solution IMO), or enhance the project to support such use-cases out-of-the-box.

Thanks