Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions src/frontend/src/content/docs/get-started/pipelines.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>("api").WithReference(database);

// Add custom deployment validation
builder.Services.Configure<DistributedApplicationPipelineOptions>(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.
Expand Down Expand Up @@ -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
</Steps>

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.
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.
Loading