New architecture schema (graphviz dot format)

This commit is contained in:
southerntofu 2022-02-23 20:39:40 +01:00
parent 5ff402bada
commit fab5516935
3 changed files with 66 additions and 0 deletions

63
static/schema.dot Normal file
View File

@ -0,0 +1,63 @@
# http://www.graphviz.org/content/cluster
digraph G {
graph [fontname = "Handlee"];
node [fontname = "Handlee"];
edge [fontname = "Handlee"];
bgcolor=transparent;
subgraph cluster_0 {
node [style=filled fontsize=10];
"foreach task for source"
"all tasks completed"
label = "forgebuild";
fontsize = 20;
color=blue
subgraph cluster_2 {
node [style=filled fontsize=10]
label="Task"
color = blue
fontsize = 15
"Main/submodules updates"
"Run task"
}
}
subgraph cluster_1 {
node [style=filled];
fontsize = 20;
color = blue;
label="Github/Gitea/Gitlab"
"Send webhook"
}
subgraph cluster_3 {
node [style=filled];
fontsize = 20;
color = blue;
label="forgehook";
"receive POST request"
"Error (4XX/5XX)"
"Success (200)"
}
subgraph cluster_4 {
node [style=filled]
fontsize = 20;
color = blue;
label="forgecheck";
"Check secret"
}
"Send webhook" -> "receive POST request" -> "Check secret"
"Check secret" -> "foreach task for source" [label="valid"]
"Check secret" -> "Error (4XX/5XX)" [label="invalid"]
"foreach task for source" -> "Main/submodules updates"
"Main/submodules updates" -> "Run task"
"Run task" -> "all tasks completed"
"all tasks completed" -> "Success (200)"
}

BIN
static/schema.dot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

3
static/schema.sh Normal file
View File

@ -0,0 +1,3 @@
#! /usr/bin/env bash
dot -Tpng "$1" > "$1".png