1 | import { HandlerContext } from "@atomist/automation-client";
|
2 | import { GitProject } from "@atomist/automation-client/project/git/GitProject";
|
3 | import { ExecuteGoal, PrepareForGoalExecution, SdmGoalEvent } from "@atomist/sdm";
|
4 | export interface DockerOptions {
|
5 | |
6 |
|
7 |
|
8 | push: boolean;
|
9 | |
10 |
|
11 |
|
12 |
|
13 | registry?: string;
|
14 | |
15 |
|
16 |
|
17 |
|
18 | user?: string;
|
19 | |
20 |
|
21 |
|
22 |
|
23 | password?: string;
|
24 | dockerfileFinder?: (p: GitProject) => Promise<string>;
|
25 | }
|
26 | export declare type DockerImageNameCreator = (p: GitProject, sdmGoal: SdmGoalEvent, options: DockerOptions, ctx: HandlerContext) => Promise<{
|
27 | registry: string;
|
28 | name: string;
|
29 | version: string;
|
30 | }>;
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare function executeDockerBuild(imageNameCreator: DockerImageNameCreator, preparations: PrepareForGoalExecution[], options: DockerOptions): ExecuteGoal;
|
38 | export declare const DefaultDockerImageNameCreator: DockerImageNameCreator;
|