Flow
is a lightweight tool for running declarative pipelines defined in YAML format. It is designed to be simple to use, adaptable to various environments, and supports running commands using different shells.
- Run YAML Pipelines: Define a sequence of pipeline steps with names and commands.
- Multi-Shell Support: Choose between
cmd.exe
,powershell.exe
, andbash
for executing commands. - Flexible Usage: Easily configure and run your pipeline via the command line.
- Prepare your YAML file to define the pipeline steps.
Example of a
pipeline.yml
file:
steps:
- name: "Build the project"
command: "dotnet build ./src/MyProject.sln"
- name: "Run tests"
command: "dotnet test ./src/MyProject.sln"
- name: "Deploy to filesystem"
command: "dotnet publish ./src/MyProject.sln -o ./deploy && dir ./deploy"
- Run Flow by specifying the pipeline file and the shell to use. Example command:
Flow.exe pipeline.yml powershell.exe
- Flow will execute the steps defined in the YAML file using the specified shell.
You can automate the execution of a pipeline using a .bat script like the following:
@echo off
REM Run a pipeline with Flow using PowerShell as the shell
Flow.exe pipeline.yml powershell.exe
Save the file as run_pipeline.bat and run it to execute the pipeline.
Flow is an ideal tool for those looking for a straightforward solution to orchestrate declarative pipelines in diverse environments.