Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

ContainerImagePushOptionsCallbackAnnotation

Classsealednet10.0
📦 Aspire.Hosting v13.5.4
Represents an annotation that configures container image push options via a callback function.
namespace Aspire.Hosting.ApplicationModel;
public sealed class ContainerImagePushOptionsCallbackAnnotation
: Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
// ...
}
This annotation allows resources to customize how container images are named and tagged when pushed to a registry. Multiple annotations can be added to a single resource, and all callbacks will be invoked in the order they were added. Use ResourceBuilderExtensions.WithImagePushOptions or ResourceBuilderExtensions.WithImagePushOptions to add this annotation to a resource.