-
Notifications
You must be signed in to change notification settings - Fork 850
Open
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
given the simple AppHost Example here i cant control the Tag that gets created by "aspire publish". A Tag Per Project does not seem nessecary, but for the build a Version would help identification.
var builder = DistributedApplication.CreateBuilder(args);
var compose = builder.AddDockerComposeEnvironment("compose")
.WithProperties(env =>
{
env.DefaultNetworkName = "adv-network";
});
var api = builder.AddProject<Projects.qsp_AdventureStudio_Api>("adv-api")
.WithReference(postgres)
.WaitForCompletion(migrator);
Describe the solution you'd like
Id like a Solution like:
var compose = builder.AddDockerComposeEnvironment("compose")
.WithProperties(env =>
{
env.DefaultNetworkName = "adv-network";
env.ProjectImageTag = "not-latest";
});
Additional context
My current CI solution has a workaround, but requires the following steps per service:
- download latest image
- check timestamp if it may be the correct (not robust)
- tag the image
- upload the new tagged image
this is a not robust and not satisfying way of archieving this behavior.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication