Skip to content

Lightweight versatile tool for running declarative YAML pipelines

License

Notifications You must be signed in to change notification settings

EmilianoMusso/flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flow

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.

Key Features

  • Run YAML Pipelines: Define a sequence of pipeline steps with names and commands.
  • Multi-Shell Support: Choose between cmd.exe, powershell.exe, and bash for executing commands.
  • Flexible Usage: Easily configure and run your pipeline via the command line.

How to Use Flow

  1. 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"
  1. Run Flow by specifying the pipeline file and the shell to use. Example command:
Flow.exe pipeline.yml powershell.exe
  1. Flow will execute the steps defined in the YAML file using the specified shell.

Batch Script Example

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.

About

Lightweight versatile tool for running declarative YAML pipelines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages