@catladder/cli 0.0.0-main-a7db0072 → 0.0.0-main-acb595b0
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.
|
@@ -40925,7 +40925,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
40925
40925
|
|
|
40926
40926
|
exports.__esModule = true;
|
|
40927
40927
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
40928
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
40928
|
+
exports.PIPELINE_IMAGE_TAG = "main-acb595b0" || 0;
|
|
40929
40929
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
40930
40930
|
|
|
40931
40931
|
/***/ }),
|
|
@@ -42774,7 +42774,7 @@ var jobName_1 = __nccwpck_require__(7311);
|
|
|
42774
42774
|
var artifactsRegistry_1 = __nccwpck_require__(8159);
|
|
42775
42775
|
var getServiceName_1 = __nccwpck_require__(9391);
|
|
42776
42776
|
var cleanup_1 = __nccwpck_require__(964);
|
|
42777
|
-
var
|
|
42777
|
+
var setGoogleProjectNumberScript = function (deployConfig) {
|
|
42778
42778
|
return ["export GCLOUD_PROJECT_NUMBER=$(gcloud projects describe ".concat(deployConfig.projectId, " --format=\"value(projectNumber)\")"), "echo \"GCLOUD_PROJECT_NUMBER: $GCLOUD_PROJECT_NUMBER\""];
|
|
42779
42779
|
};
|
|
42780
42780
|
var createGoogleCloudRunDeployJobs = function (context) {
|
|
@@ -42921,7 +42921,7 @@ var createGoogleCloudRunDeployJobs = function (context) {
|
|
|
42921
42921
|
"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)];
|
|
42922
42922
|
});
|
|
42923
42923
|
};
|
|
42924
|
-
var deployScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gitlab_1.collapseableSection)("prepare", "Prepare...")(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(
|
|
42924
|
+
var deployScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gitlab_1.collapseableSection)("prepare", "Prepare...")(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(setGoogleProjectNumberScript(deployConfig)), false))), 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
|
|
42925
42925
|
: []), false), __read(getCreateScheduleScripts()), false), __read(getJobCreateScripts()), false), __read(getJobRunScripts("preDeploy")), false), __read(deployConfig.service !== false ? [getServiceDeployScript(deployConfig.service)] : []), false), __read(Object.entries((_b = deployConfig.additionalServices) !== null && _b !== void 0 ? _b : {}).map(function (_a) {
|
|
42926
42926
|
var _b = __read(_a, 2),
|
|
42927
42927
|
name = _b[0],
|
|
@@ -355464,7 +355464,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
355464
355464
|
|
|
355465
355465
|
exports.__esModule = true;
|
|
355466
355466
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
355467
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
355467
|
+
exports.PIPELINE_IMAGE_TAG = "main-acb595b0" || 0;
|
|
355468
355468
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
355469
355469
|
|
|
355470
355470
|
/***/ }),
|
|
@@ -357313,7 +357313,7 @@ var jobName_1 = __nccwpck_require__(77311);
|
|
|
357313
357313
|
var artifactsRegistry_1 = __nccwpck_require__(28159);
|
|
357314
357314
|
var getServiceName_1 = __nccwpck_require__(89391);
|
|
357315
357315
|
var cleanup_1 = __nccwpck_require__(10964);
|
|
357316
|
-
var
|
|
357316
|
+
var setGoogleProjectNumberScript = function (deployConfig) {
|
|
357317
357317
|
return ["export GCLOUD_PROJECT_NUMBER=$(gcloud projects describe ".concat(deployConfig.projectId, " --format=\"value(projectNumber)\")"), "echo \"GCLOUD_PROJECT_NUMBER: $GCLOUD_PROJECT_NUMBER\""];
|
|
357318
357318
|
};
|
|
357319
357319
|
var createGoogleCloudRunDeployJobs = function (context) {
|
|
@@ -357460,7 +357460,7 @@ var createGoogleCloudRunDeployJobs = function (context) {
|
|
|
357460
357460
|
"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)];
|
|
357461
357461
|
});
|
|
357462
357462
|
};
|
|
357463
|
-
var deployScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gitlab_1.collapseableSection)("prepare", "Prepare...")(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(
|
|
357463
|
+
var deployScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gitlab_1.collapseableSection)("prepare", "Prepare...")(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(setGoogleProjectNumberScript(deployConfig)), false))), 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
|
|
357464
357464
|
: []), false), __read(getCreateScheduleScripts()), false), __read(getJobCreateScripts()), false), __read(getJobRunScripts("preDeploy")), false), __read(deployConfig.service !== false ? [getServiceDeployScript(deployConfig.service)] : []), false), __read(Object.entries((_b = deployConfig.additionalServices) !== null && _b !== void 0 ? _b : {}).map(function (_a) {
|
|
357465
357465
|
var _b = __read(_a, 2),
|
|
357466
357466
|
name = _b[0],
|
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
"license": "MIT",
|
|
55
|
-
"version": "0.0.0-main-
|
|
55
|
+
"version": "0.0.0-main-acb595b0",
|
|
56
56
|
"scripts": {
|
|
57
57
|
"lint": "eslint \"src/**/*.ts\"",
|
|
58
58
|
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"node": ">=12.0.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@catladder/pipeline": "0.0.0-main-
|
|
76
|
+
"@catladder/pipeline": "0.0.0-main-acb595b0",
|
|
77
77
|
"@kubernetes/client-node": "^0.16.2",
|
|
78
78
|
"@tsconfig/node14": "^1.0.1",
|
|
79
79
|
"@types/common-tags": "^1.8.0",
|