forked from renovatebot/renovate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
47 lines (41 loc) · 919 Bytes
/
types.ts
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
export interface GitlabIncludeLocal {
local: string;
}
export interface GitlabIncludeProject {
project: string;
file?: string;
ref?: string;
}
export interface GitlabIncludeRemote {
remote: string;
}
export interface GitlabIncludeTemplate {
template: string;
}
export interface GitlabIncludeComponent {
component: string;
}
export interface GitlabPipeline {
include?: GitlabInclude[] | GitlabInclude;
}
export interface ImageObject {
name: string;
entrypoint?: string[];
}
export interface ServicesObject extends ImageObject {
command?: string[];
alias?: string;
}
export interface Job {
image?: Image;
services?: Services;
}
export type Image = ImageObject | string;
export type Services = (string | ServicesObject)[];
export type GitlabInclude =
| GitlabIncludeLocal
| GitlabIncludeProject
| GitlabIncludeRemote
| GitlabIncludeTemplate
| GitlabIncludeComponent
| string;