-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathschema-spy-build.json
More file actions
96 lines (95 loc) · 2.17 KB
/
Copy pathschema-spy-build.json
File metadata and controls
96 lines (95 loc) · 2.17 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"annotations": {
"description": "SchemaSpy build template.",
"tags": "schema-spy"
},
"name": "${NAME}-build-template"
},
"objects": [
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "${NAME}"
}
},
{
"kind": "BuildConfig",
"apiVersion": "v1",
"metadata": {
"name": "${NAME}",
"labels": {
"app": "${NAME}",
"buildconfig": "${NAME}"
}
},
"spec": {
"source": {
"type": "Git",
"git": {
"uri": "${GIT_REPO_URL}",
"ref": "${GIT_REF}"
},
"contextDir": "${SOURCE_CONTEXT_DIR}"
},
"strategy": {
"type": "Docker"
},
"output": {
"to": {
"kind": "ImageStreamTag",
"name": "${NAME}:${OUTPUT_IMAGE_TAG}"
}
},
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange"
}
]
}
}
],
"parameters": [
{
"name": "NAME",
"displayName": "Name",
"description": "The name assigned to all of the objects defined in this template.",
"required": true,
"value": "schema-spy"
},
{
"name": "GIT_REPO_URL",
"displayName": "Git Repo URL",
"description": "The URL to the Git repository.",
"required": true,
"value": "https://github.com/bcgov/SchemaSpy.git"
},
{
"name": "GIT_REF",
"displayName": "Git Reference",
"description": "The git reference or branch.",
"required": true,
"value": "master"
},
{
"name": "SOURCE_CONTEXT_DIR",
"displayName": "Source Context Directory",
"description": "The source context directory.",
"required": false,
"value": ""
},
{
"name": "OUTPUT_IMAGE_TAG",
"displayName": "Output Image Tag",
"description": "The tag given to the built image.",
"required": true,
"value": "latest"
}
]
}