Skip to content

Ability to add a pipeline step that executes after another specified step #19704

Description

@Atulin

Is there an existing issue for this?

  • I have searched the existing issues

Issue

I'm using https://github.com/davidfowl/aspire-ssh-deploy for the aspire deploy pipeline and I wanted to add a step after it's done that would send a message to a webhook. I thought that

builder.Pipeline.AddStep("send-webhook", static async ctx => {
        // ...
    },
    dependsOn: WellKnownPipelineSteps.Deploy
);

would do the trick, but running aspire deploy --list-steps lists deploy as the last step, and send-webhook is nowhere to be seen.

Request

There should be some way to insert an additional step after (and perhaps before?) any given step, or at least a way to watch for pipeline events like "done" or "failed". For example

builder.Pipeline.AddStep("send-webhook", static async ctx => {
        // ...
    },
    runAfter: WellKnownPipelineSteps.Deploy
);

Aspire doctor output

Details
❯ aspire doctor             

Aspire Environment Check
========================

Aspire
  ✅ Aspire CLI version 13.5.3 (channel: stable)  
  ✅ Developer Control Plane (DCP) connection health checks succeeded  

AppHost
  ✅ AppHost version 13.5.3 (Ogma3.AppHost\Ogma3.AppHost.csproj)  

.NET SDK
  ✅ .NET 11.0.100-preview.7.26381.103 installed (x64)  

Container Runtime
  ✅ Docker v29.7.2: running (auto-detected (default)) ← active  

Environment
  ✅ Operating system: Windows 10.0.26200.0  
  ✅ HTTPS development certificate is trusted  

Development Tools
  ⚠️ VS Code is installed, but the Aspire extension is not installed  
       Install the Aspire extension from the VS Code Marketplace for an integrated Aspire experience.       
       See: https://aka.ms/aspire/vscode-extension                                                          

Summary: 7 passed, 1 warnings, 0 failed
For detailed prerequisites: https://aka.ms/aspire-prerequisites

Aspire CLI Installations
========================

╭─────────────────────────────────────────────────┬─────────────────────────────────────────────────┬─────────┬───────────┬─────────────╮
│ Path                                            │ Version                                         │ Channel │ Route     │ PATH status │
├─────────────────────────────────────────────────┼─────────────────────────────────────────────────┼─────────┼───────────┼─────────────┤
│ C:\Users\kouma\.aspire\bin\aspire.exe (current) │ 13.5.3+b5f143315ffb6968ea939a9978797a5b20e4c688 │ stable  │ (unknown) │ active      │
╰─────────────────────────────────────────────────┴─────────────────────────────────────────────────┴─────────┴───────────┴─────────────╯

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-deploymentneeds-area-labelAn area label is needed to ensure this gets routed to the appropriate area ownerstriage:bot-seenAspire triage bot has seen this issue

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions