blob: 96e0959fe4fc5d770d68f12bfc7cfae4bde62e97 (
plain)
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
|
export type JobArgT = Record<string, string>;
export interface Job {
readonly type: string;
readonly arguments: JobArgT;
}
export interface FetchCodeJobProps extends JobArgT {
readonly remoteUrl: string;
readonly checkout: string;
readonly path: string;
}
export interface FetchCodeJob {
readonly type: "fetch_code";
readonly arguments: FetchCodeJobProps;
}
export interface BuildDockerImageJobProps extends JobArgT {
readonly registry: string;
readonly namespace: string;
readonly repository: string;
readonly imageTag: string;
readonly context: string;
readonly dockerfile: string;
readonly buildTarget: string;
}
export interface BuildDockerImageJob extends Job {
readonly type: "build_docker_image";
readonly arguments: BuildDockerImageJobProps;
}
export interface AnsiblePlaybookJobProps extends JobArgT {
readonly playbooks: string;
}
export interface AnsiblePlaybookJob extends Job {
readonly type: "ansible_playbook";
readonly arguments: AnsiblePlaybookJobProps;
}
|