1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | const sdm_1 = require("@atomist/sdm");
|
19 | const executeDockerBuild_1 = require("./executeDockerBuild");
|
20 |
|
21 |
|
22 |
|
23 | class DockerBuild extends sdm_1.FulfillableGoalWithRegistrations {
|
24 | constructor(uniqueName = sdm_1.DefaultGoalNameGenerator.generateName("docker-build")) {
|
25 | super({
|
26 | uniqueName,
|
27 | displayName: "docker build",
|
28 | environment: sdm_1.IndependentOfEnvironment,
|
29 | workingDescription: "Running docker build",
|
30 | completedDescription: "Docker build successful",
|
31 | failedDescription: "Docker build failed",
|
32 | isolated: true,
|
33 | });
|
34 | this.uniqueName = uniqueName;
|
35 | }
|
36 | with(registration) {
|
37 | this.addFulfillment(Object.assign({ goalExecutor: executeDockerBuild_1.executeDockerBuild(registration.imageNameCreator ? registration.imageNameCreator : executeDockerBuild_1.DefaultDockerImageNameCreator, registration.preparations, registration.options) }, registration));
|
38 | return this;
|
39 | }
|
40 | }
|
41 | exports.DockerBuild = DockerBuild;
|
42 |
|
\ | No newline at end of file |