forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodeship-steps.json
178 lines (178 loc) · 5.2 KB
/
codeship-steps.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CodeShip Pro steps configuration",
"description": "codeship-steps.yml is where you configure each step to run in your CI/CD builds with CodeShip.",
"definitions": {
"ExternalStep": {
"title": "CodeShip Pro Step",
"description": "The definition of a step",
"properties": {
"name": {
"description": "The name of the step. Can be omitted.",
"type": "string"
},
"type": {
"description": "The type of the step. If omitted, defaults to 'run'",
"type": "string",
"enum": [
null,
"run",
"serial",
"push",
"parallel",
"load",
"manual"
]
},
"tag": {
"description": "A pattern matching tags or branches this step and any of its children should be run against. Defaults to always running.",
"type": "string"
},
"exclude": {
"description": "A pattern matching tags or branches on which this step should NOT be run. Defaults to empty.",
"type": "string"
},
"service": {
"description": "The service name defined in codeship-services.yml this step will run on",
"type": "string"
},
"services": {
"description": "A list of service names defined in codeship-services.yml that will be used for this step.",
"items": {
"type": "string"
},
"type": "array"
},
"command": {
"description": "The command to be run in this step. Required with and can only be used with the 'run' type or no specified type",
"type": "string"
},
"steps": {
"description": "A list of steps to run within this step or on_fail group. Cannot be used with 'run', 'push', or 'load' steps",
"items": {
"$ref": "#/definitions/ExternalStep"
},
"type": "array"
},
"image_name": {
"description": "The image name this push step should push to. Required with and only used by the push step",
"type": "string"
},
"image_tag": {
"description": "The image tag this push step should push to. See https://docs.cloudbees.com/docs/cloudbees-codeship/latest/pro-builds-and-configuration/steps#_push_steps for details. Only used by the push step",
"default": "latest",
"type": "string"
},
"registry": {
"description": "The image registry this push step should push to. For Docker Hub, use https://registry-1.docker.io. Required with and only used by the push step",
"type": "string"
},
"encrypted_dockercfg_path": {
"description": "The location of a Docker configuration file encrypted by Jet to be used with this step. Optional.",
"type": "string"
},
"dockercfg_service": {
"description": "The name of a service defined in codeship-services.yml that provides the Docker configuration. Optional.",
"type": "string"
},
"on_fail": {
"description": "An optional list of steps to run if this step fails.",
"items": {
"$ref": "#/definitions/ExternalStep"
},
"type": "array"
}
},
"if": {
"properties": {
"type": {
"anyOf": [
{ "const": "run" },
{ "type": "null" }
]
}
}
},
"then": {
"properties": {
"steps": {
"type": "null"
},
"image_name": {
"type": "null"
},
"image_tag": {
"type": "null"
},
"registry": {
"type": "null"
}
},
"required": [
"command"
]
},
"else": {
"if": {
"properties": {
"type": {
"const": "push"
}
}
},
"then": {
"properties": {
"command": {
"type": "null"
},
"steps": {
"type": "null"
}
},
"required": [
"image_name",
"registry"
]
},
"else": {
"if": {
"properties": {
"type": {
"anyOf": [
{ "const": "serial" },
{ "const": "parallel" },
{ "const": "manual" }
]
}
}
},
"then": {
"properties": {
"command": {
"type": "null"
},
"image_name": {
"type": "null"
},
"image_tag": {
"type": "null"
},
"registry": {
"type": "null"
}
},
"required": [
"steps"
]
}
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "array",
"items": {
"$ref": "#/definitions/ExternalStep"
}
}