C
C#2mo ago
savochek__

How to add an image tag to an Aspire's ProjectResource?

so I add my project like this:
var apiService = builder
.AddProject<Projects.Messenger_ApiService>("apiService")
.WithEnvironment("ASPNETCORE_URLS", "http://*:8080;https://*:8443");
var apiService = builder
.AddProject<Projects.Messenger_ApiService>("apiService")
.WithEnvironment("ASPNETCORE_URLS", "http://*:8080;https://*:8443");
I want to be able to set an image tag to it, but I can't since it isn't a ContainerResource and wasn't created using AddContainer. but why can't I apply an image tag to it? it also results in the image being pushed to the repository. I'm using Aspir8 and deploying to my Kubernetes cluster if that matters.
1 Reply
savochek__
savochek__OP2mo ago
I can probably use --container-image-tag in the Aspir8 generate command, but is there a way to do it in the AppHost?
Want results from more Discord servers?
Add your server