Workflows

The workflows section lists CI/CD workflows.

A workflow helps to organize tasks related to a certain CI/CD stage into a logical sequence. For example, you can run one workflow to build, test, or otherwise check your code, and another one, for release.

The following parameters are supported:

  • tasks: List of tasks that are part of the workflow.
  • settings: Settings valid for the entire workflow.

settings

The settings section specifies the settings that are valid for the entire workflow, for example:

workflows:
  my-workflow:
    settings:
      max_cube_duration: 20s
      retry: 2

Example

tasks:
  - name: another-task

workflows:
  my-workflow:
    tasks:
      - name: my-task
        cubes:
          - name: A
            script:
              - touch test.txt
          - name: B
            needs: ['-']
            script:
              - rm -f test.txt
          - name: C
            needs: ['A', 'B']
            script:
              - ls
    
      - another-task
...

See also