Publishing Docker image for project resource to GitHub fails due to ContainerRepository #8748
Open
1 task done
Labels
area-app-model
Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Is there an existing issue for this?
Describe the bug
I'm excited to try the new docker-compose publisher, knowing that it is still a preview. This is exactly what I am looking for to use in our current project!
I am trying to publish using the aspire.cli withe the docker-compose publisher. This works fine locally (not specifying the
ContainerRegistry
property in the project file) but fails as soon as I want to publish to GitHub.Usually I set the property
ContainerRepository
in my project file to something like "company/packages/product".However, aspire overwrites this property with the resource name which is "product" in my case.
Running aspire with the --debug switch shows that dotnet publish is being called with
/p:ContainerRepository=product
ResourceContainerImageBuilder.BuildProjectContainerImageAsync()
always adds that property to the dotnet call. Would it make sense to allow overriding this behavior?Expected Behavior
I would expect Aspire to use the Property
ContainerRepository
as defined in the project file. This is howdotnet publish
generates the image name.Steps To Reproduce
No response
Exceptions (if any)
There is no exception being displayed. The publishing step seems to run forever in this case.
.NET Version info
.Net SDK 9.0.203
Anything else?
Aspire 9.2
aspire.cli 9.2.0-preview.1.25209.2
The text was updated successfully, but these errors were encountered: