@catladder/cli 0.0.0-main-0eb13d37 → 0.0.0-main-deeb54d7
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.
|
@@ -40865,7 +40865,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
40865
40865
|
|
|
40866
40866
|
exports.__esModule = true;
|
|
40867
40867
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
40868
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
40868
|
+
exports.PIPELINE_IMAGE_TAG = "main-deeb54d7" || 0;
|
|
40869
40869
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
40870
40870
|
|
|
40871
40871
|
/***/ }),
|
|
@@ -42605,13 +42605,13 @@ var createGoogleCloudRunDeployJobs = function (context) {
|
|
|
42605
42605
|
"gcloud beta run jobs executions list ".concat(commonArgsString, " --job ").concat(jobName, " --format=\"value(name)\" | xargs -I {} gcloud beta run jobs executions delete {} --quiet ").concat(commonArgsString), "gcloud beta run jobs delete ".concat(jobName, " ").concat(commonArgsString)];
|
|
42606
42606
|
});
|
|
42607
42607
|
};
|
|
42608
|
-
var deployScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(
|
|
42608
|
+
var deployScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gitlab_1.collapseableSection)("prepare", "Prepare...")(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(setExtraVarsScripts(deployConfig)), false))), false), __read((0, gitlab_1.collapseableSection)("pushToArtifactRegistry", "Pushing image to artifacts registry")(pushImageToArtifactsRegistry)), false), __read((0, gitlab_1.collapseableSection)("deploy", "Deploy to cloud run")(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(["echo \"$ENV_VARS\" > ____envvars.yaml"], __read(deployConfig.cloudSql ? (0, database_1.getDatabaseCreateScript)(context, deployConfig) // we create the db, so that we can also delete it afterwards
|
|
42609
42609
|
: []), false), __read(getCreateScheduleScripts()), false), __read(getJobCreateScripts()), false), __read(getJobRunScripts("preDeploy")), false), __read(deployConfig.service !== false ? [getServiceDeployScript(deployConfig.service)] : []), false), __read(Object.entries((_c = deployConfig.additionalServices) !== null && _c !== void 0 ? _c : {}).map(function (_a) {
|
|
42610
42610
|
var _b = __read(_a, 2),
|
|
42611
42611
|
name = _b[0],
|
|
42612
42612
|
service = _b[1];
|
|
42613
42613
|
return getServiceDeployScript(service, "-" + name);
|
|
42614
|
-
})), false), __read(getJobRunScripts("postDeploy")), false), ["docker image rm ".concat(gcloudImageName)], false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false);
|
|
42614
|
+
})), false), __read(getJobRunScripts("postDeploy")), false))), false), ["docker image rm ".concat(gcloudImageName)], false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false);
|
|
42615
42615
|
var stopScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(deployConfig.service !== false ? ["gcloud run services delete ".concat(serviceName, " ").concat(commonArgsString)] : []), false), __read(Object.entries((_d = deployConfig.additionalServices) !== null && _d !== void 0 ? _d : {}).map(function (_a) {
|
|
42616
42616
|
var _b = __read(_a, 1),
|
|
42617
42617
|
name = _b[0];
|
|
@@ -45828,7 +45828,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
45828
45828
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
45829
45829
|
};
|
|
45830
45830
|
exports.__esModule = true;
|
|
45831
|
-
exports.repeatOnFailure = exports.sanitizeForBashVariable = exports.allowFailureInScripts = void 0;
|
|
45831
|
+
exports.collapseableSection = exports.repeatOnFailure = exports.sanitizeForBashVariable = exports.allowFailureInScripts = void 0;
|
|
45832
45832
|
var allowFailureInScripts = function (script) {
|
|
45833
45833
|
return __spreadArray(__spreadArray(["set +e"], __read(script), false), ["set -e" // reenable
|
|
45834
45834
|
], false);
|
|
@@ -45842,6 +45842,12 @@ var repeatOnFailure = function (command, options) {
|
|
|
45842
45842
|
return "\n until ".concat(command, "\n do\n echo \"Trying again.\"\n sleep ").concat(options.pauseInSeconds, "\n done\n ");
|
|
45843
45843
|
};
|
|
45844
45844
|
exports.repeatOnFailure = repeatOnFailure;
|
|
45845
|
+
var collapseableSection = function (name, header) {
|
|
45846
|
+
return function (commands) {
|
|
45847
|
+
return __spreadArray(__spreadArray(["echo -e \"\\e[0Ksection_start:$(date +%s):".concat(name, "[collapsed=true]\\r\\e[0K").concat(header, "\"")], __read(commands), false), ["echo -e \"\\e[0Ksection_end:$(date +%s):".concat(name, "\\r\\e[0K\"")], false);
|
|
45848
|
+
};
|
|
45849
|
+
};
|
|
45850
|
+
exports.collapseableSection = collapseableSection;
|
|
45845
45851
|
|
|
45846
45852
|
/***/ }),
|
|
45847
45853
|
|
|
@@ -354984,7 +354984,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
354984
354984
|
|
|
354985
354985
|
exports.__esModule = true;
|
|
354986
354986
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
354987
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
354987
|
+
exports.PIPELINE_IMAGE_TAG = "main-deeb54d7" || 0;
|
|
354988
354988
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
354989
354989
|
|
|
354990
354990
|
/***/ }),
|
|
@@ -356724,13 +356724,13 @@ var createGoogleCloudRunDeployJobs = function (context) {
|
|
|
356724
356724
|
"gcloud beta run jobs executions list ".concat(commonArgsString, " --job ").concat(jobName, " --format=\"value(name)\" | xargs -I {} gcloud beta run jobs executions delete {} --quiet ").concat(commonArgsString), "gcloud beta run jobs delete ".concat(jobName, " ").concat(commonArgsString)];
|
|
356725
356725
|
});
|
|
356726
356726
|
};
|
|
356727
|
-
var deployScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(
|
|
356727
|
+
var deployScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gitlab_1.collapseableSection)("prepare", "Prepare...")(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(setExtraVarsScripts(deployConfig)), false))), false), __read((0, gitlab_1.collapseableSection)("pushToArtifactRegistry", "Pushing image to artifacts registry")(pushImageToArtifactsRegistry)), false), __read((0, gitlab_1.collapseableSection)("deploy", "Deploy to cloud run")(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(["echo \"$ENV_VARS\" > ____envvars.yaml"], __read(deployConfig.cloudSql ? (0, database_1.getDatabaseCreateScript)(context, deployConfig) // we create the db, so that we can also delete it afterwards
|
|
356728
356728
|
: []), false), __read(getCreateScheduleScripts()), false), __read(getJobCreateScripts()), false), __read(getJobRunScripts("preDeploy")), false), __read(deployConfig.service !== false ? [getServiceDeployScript(deployConfig.service)] : []), false), __read(Object.entries((_c = deployConfig.additionalServices) !== null && _c !== void 0 ? _c : {}).map(function (_a) {
|
|
356729
356729
|
var _b = __read(_a, 2),
|
|
356730
356730
|
name = _b[0],
|
|
356731
356731
|
service = _b[1];
|
|
356732
356732
|
return getServiceDeployScript(service, "-" + name);
|
|
356733
|
-
})), false), __read(getJobRunScripts("postDeploy")), false), ["docker image rm ".concat(gcloudImageName)], false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false);
|
|
356733
|
+
})), false), __read(getJobRunScripts("postDeploy")), false))), false), ["docker image rm ".concat(gcloudImageName)], false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false);
|
|
356734
356734
|
var stopScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(deployConfig.service !== false ? ["gcloud run services delete ".concat(serviceName, " ").concat(commonArgsString)] : []), false), __read(Object.entries((_d = deployConfig.additionalServices) !== null && _d !== void 0 ? _d : {}).map(function (_a) {
|
|
356735
356735
|
var _b = __read(_a, 1),
|
|
356736
356736
|
name = _b[0];
|
|
@@ -359947,7 +359947,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
359947
359947
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
359948
359948
|
};
|
|
359949
359949
|
exports.__esModule = true;
|
|
359950
|
-
exports.repeatOnFailure = exports.sanitizeForBashVariable = exports.allowFailureInScripts = void 0;
|
|
359950
|
+
exports.collapseableSection = exports.repeatOnFailure = exports.sanitizeForBashVariable = exports.allowFailureInScripts = void 0;
|
|
359951
359951
|
var allowFailureInScripts = function (script) {
|
|
359952
359952
|
return __spreadArray(__spreadArray(["set +e"], __read(script), false), ["set -e" // reenable
|
|
359953
359953
|
], false);
|
|
@@ -359961,6 +359961,12 @@ var repeatOnFailure = function (command, options) {
|
|
|
359961
359961
|
return "\n until ".concat(command, "\n do\n echo \"Trying again.\"\n sleep ").concat(options.pauseInSeconds, "\n done\n ");
|
|
359962
359962
|
};
|
|
359963
359963
|
exports.repeatOnFailure = repeatOnFailure;
|
|
359964
|
+
var collapseableSection = function (name, header) {
|
|
359965
|
+
return function (commands) {
|
|
359966
|
+
return __spreadArray(__spreadArray(["echo -e \"\\e[0Ksection_start:$(date +%s):".concat(name, "[collapsed=true]\\r\\e[0K").concat(header, "\"")], __read(commands), false), ["echo -e \"\\e[0Ksection_end:$(date +%s):".concat(name, "\\r\\e[0K\"")], false);
|
|
359967
|
+
};
|
|
359968
|
+
};
|
|
359969
|
+
exports.collapseableSection = collapseableSection;
|
|
359964
359970
|
|
|
359965
359971
|
/***/ }),
|
|
359966
359972
|
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node": ">=12.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@catladder/pipeline": "0.0.0-main-
|
|
27
|
+
"@catladder/pipeline": "0.0.0-main-deeb54d7",
|
|
28
28
|
"@kubernetes/client-node": "^0.16.2",
|
|
29
29
|
"@tsconfig/node14": "^1.0.1",
|
|
30
30
|
"@types/common-tags": "^1.8.0",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"typescript": "^4.5.4",
|
|
58
58
|
"vorpal": "^1.12.0"
|
|
59
59
|
},
|
|
60
|
-
"version": "0.0.0-main-
|
|
60
|
+
"version": "0.0.0-main-deeb54d7",
|
|
61
61
|
"stableVersion": "0.0.0"
|
|
62
62
|
}
|