Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.35 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.35 KB

sisyphus.tartarus

A workflow definition language similar to plantuml.

一个类似于plantuml的工作流定义语言。

: fillForm initDeploy
  by: @owner;

if ($env = "staging") then
  : fillForm configFeatureToggle
    by: @releaseOwner
    atLatest: 5 days before $releaseDate;
end

while (proj in $projects)
  : callApi http://api.gitlab.com/v2/pipeline/${proj}
    body: { branch: ${branch} }
    auth: bearer #ciToken;
end

parallel (holder in $stakeholders)
  : confirm please confirm the release ${version} for env ${env}?
    by: $holder;
end

: callApi http://api.gitlab.com/v2/pipeline/${proj}
  body: { action: deploy }
  auth: bearer #ciToken;

A workflow similar to the one below can be generated

可以生成一个类似于下图的工作流

example