diff --git a/src/frontend/src/content/docs/get-started/pipelines.mdx b/src/frontend/src/content/docs/get-started/pipelines.mdx index 84d272bc..158b47d2 100644 --- a/src/frontend/src/content/docs/get-started/pipelines.mdx +++ b/src/frontend/src/content/docs/get-started/pipelines.mdx @@ -253,20 +253,17 @@ Applications can add custom steps directly through the pipeline API for scenario ```csharp title="C# — AppHost.cs" var builder = DistributedApplication.CreateBuilder(args); +// Add custom deployment validation +builder.Pipeline.AddStep("validate-deployment", async context => +{ + // Custom validation logic + await ValidateApiHealth(context); + await ValidateDatabaseConnection(context); +}, requiredBy: WellKnownPipelineSteps.Deploy); + // Define resources var database = builder.AddPostgres("myapp-db"); var api = builder.AddProject("api").WithReference(database); - -// Add custom deployment validation -builder.Services.Configure(options => -{ - options.AddStep("validate-deployment", async context => - { - // Custom validation logic - await ValidateApiHealth(context); - await ValidateDatabaseConnection(context); - }).DependsOn(WellKnownSteps.Deploy); -}); ``` This pattern enables applications to extend the deployment process with custom logic while benefiting from the pipeline's dependency management and execution coordination. @@ -348,4 +345,4 @@ The pipeline system provides robust failure handling during parallel execution: 4. **Error isolation**: Failures in one part of the pipeline are contained and don't affect independent operations -The system maintains comprehensive logging and state information to support efficient debugging and recovery, ensuring that developers can quickly identify and resolve issues while preserving all successful work. \ No newline at end of file +The system maintains comprehensive logging and state information to support efficient debugging and recovery, ensuring that developers can quickly identify and resolve issues while preserving all successful work.