@catladder/pipeline 1.110.3 → 1.111.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build/docker.d.ts
CHANGED
|
@@ -8,7 +8,14 @@ export declare const getDockerImageVariables: (context: Context) => {
|
|
|
8
8
|
DOCKER_IMAGE: string;
|
|
9
9
|
DOCKER_IMAGE_TAG: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Weather the context requires a docker build
|
|
13
|
+
*/
|
|
14
|
+
export declare const requiresDockerBuild: ({
|
|
15
|
+
componentConfig: {
|
|
16
|
+
deploy
|
|
17
|
+
}
|
|
18
|
+
}: Context) => boolean;
|
|
12
19
|
export declare const getDockerBuildVariables: (context: Context) => {
|
|
13
20
|
DOCKER_REGISTRY: string;
|
|
14
21
|
DOCKER_REGISTRY_IMAGE_PATH: string;
|
package/dist/build/docker.js
CHANGED
|
@@ -71,21 +71,12 @@ var getDockerImageVariables = function (context) {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
exports.getDockerImageVariables = getDockerImageVariables;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
if ((0, deploy_1.isOfDeployType)(deployConfig, "custom") && deployConfig.requiresDocker) {
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
if ((0, deploy_1.isOfDeployType)(deployConfig, "dockerTag")) {
|
|
86
|
-
return true;
|
|
87
|
-
}
|
|
88
|
-
return false;
|
|
74
|
+
/**
|
|
75
|
+
* Weather the context requires a docker build
|
|
76
|
+
*/
|
|
77
|
+
var requiresDockerBuild = function (_a) {
|
|
78
|
+
var deploy = _a.componentConfig.deploy;
|
|
79
|
+
return (0, deploy_1.isOfDeployType)(deploy, "kubernetes", "google-cloudrun", "dockerTag") || (0, deploy_1.isOfDeployType)(deploy, "custom") && deploy.requiresDocker;
|
|
89
80
|
};
|
|
90
81
|
exports.requiresDockerBuild = requiresDockerBuild;
|
|
91
82
|
var getDockerBaseVariables = function () {
|