Hacker News new | ask | show | jobs
by __warlord__ 1323 days ago
Shameless plug:

I'm working on a similar project, portable pipelines built with Nim :)

The idea behind this project is to:

1. Dev and Prod pipelines runs the same code, the only difference is where are executed. Allows easy troubleshooting and faster development.

2. Tests output by default on each script.

3. Decouples the code from the image/container. This allows it to be embedded into any CI stack.

4. Complex rules for retries specific scripts rather than the whole pipeline or even the step (stage)

A typical pipeline definition looks like this:

    ```yaml
    kind: pipeline
    version: 1
    policy: strict
    
    steps:
      - hello

    hello:
      - script: echo "hello world"
        expected_output: "hello world"
        expected_return_code: 0
        retries: 5
    ```

    ```bash
    ./takito --tasks tasks.yml --step hello
    ```