walter-cd / walter

Tiny deployment pipeline
http://walter-cd.net
Apache License 2.0
438 stars 39 forks source link

Change config format #15

Closed takahi-i closed 10 years ago

takahi-i commented 10 years ago

The new configuration format represents the dependencies with the level of indentations. The following is a sample of new format.

 global:
     dummyOpt: true

pipeline:
- command_stage_1:
    stage_type: command
    command: echo "hello, world"
    -  command_stage_2:
            stage_type: command
            command: echo "hello, world, command_stage_2"
- command_stage_3:
    stage_type: command
    command: echo "hello, world, command_stage_3"
ainoya commented 10 years ago

We get agreement to go with below style for a while.

global:
    dummyOpt: true

pipeline:
    - stage_name: command_stage_1
      stage_type: command
      command: echo "hello, world"
      run_after:
          -  stage_name: command_stage_2_group_1
             stage_type: command
             command: echo "hello, world, command_stage_2_group_1"
          -  stage_name: command_stage_3_group_1
             stage_type: command
             command: echo "hello, world, command_stage_3_group_1"
    - stage_name: command_stage_4
      stage_type: command
      command: echo "hello, world"
    - stage_name: command_stage_5
      stage_type: command
      command: echo "hello, world, command_stage_3_group_1"

In this configuration, Individual task described as stage_name is executed concurrently ruled by run_after declaration.

So above configuration sample represents task dependency below:

2014-09-06 19 58 54