-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueprint.schema.json
74 lines (74 loc) · 2.92 KB
/
blueprint.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$comment": "https://docs.skylounge.io/developing-blueprints/",
"$id": "https://github.com/sky-lounge/public-skylounge-library/schemas/blueprint.schema.json",
"title": "blueprint.yml",
"description": "Defines the automation applied to a repository by specifying one or more workflow templates that may be applied.",
"type": "object",
"properties": {
"display-name": {
"type": "string",
"description": "Unique name of the blueprint, by which it may be referenced and invoked in the Dashboard."
},
"description": {
"type": "string",
"description": "Short description of the blueprint, which is shown in the Dashboard. May contain markdown."
},
"documentation": {
"type": "string",
"description": "Longer description of the blueprint with additional detail. May contain markdown."
},
"weight": {
"type": "integer",
"description": "Integer to help sort blueprints in the Dashboard."
},
"tags": {
"type": "array",
"description": "Optional way to provide a quick visual reference to blueprint users.\nValid tags are:\n - gcp \n - aws \n - azure \n - demo \n - container-build \n - virus-scan \n - penetration-test",
"items": {
"type": "string",
"enum": [ "aws", "azure", "container-build", "demo", "gcp", "penetration-test", "virus-scan" ]
},
"minItems": 1,
"uniqueItems": true
},
"workflow-templates": {
"type": "array",
"description": "Array of one or more workflows that will be generated when using this blueprint.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the workflow."
},
"description": {
"type": "string",
"description": "Short description of what the workflow does. May contain markdown."
},
"documentation": {
"type": "string",
"description": "Longer explanation of what the workflow does. May contain markdown."
},
"uri": {
"type": "string",
"format": "uri-reference",
"description": "URI in GitHub of the workflow template used to generate the workflow."
},
"branch": {
"type": "string",
"description": "Repository branch on which the workflow operates."
},
"icon": {
"type": "string",
"description": "Optional icon code from either https://icons.getbootstrap.com or https://fontawesome.com/icons or https://fontawesome.com/icons to provide a quick visual reference of the workflow for blueprint users."
},
"uniqueItems": true
},
"required": [ "uri", "branch" ]
},
"minItems": 1
}
},
"required": [ "display-name", "description", "workflow-templates"]
}