@catladder/cli 0.0.0-main-0d0565d8 → 0.0.0-main-3c47862d

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-0d0565d8" || 0;
40928
+ exports.PIPELINE_IMAGE_TAG = "main-3c47862d" || 0;
40929
40929
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
40930
40930
 
40931
40931
  /***/ }),
@@ -42875,8 +42875,8 @@ var createGoogleCloudRunDeployJobs = function (context) {
42875
42875
  return getJobCreateScriptsForJob(jobName, job);
42876
42876
  }).flat();
42877
42877
  };
42878
- var getJobRunScriptForJob = function (jobName) {
42879
- return "gcloud beta run jobs execute ".concat(jobName, " ").concat(commonArgsString);
42878
+ var getJobRunScriptForJob = function (jobName, wait) {
42879
+ return "gcloud beta run jobs execute ".concat(jobName, " ").concat(commonArgsString).concat(wait ? " --wait" : "");
42880
42880
  };
42881
42881
  var getJobRunScripts = function (when) {
42882
42882
  return jobsWithNames.filter(function (_a) {
@@ -42884,7 +42884,9 @@ var createGoogleCloudRunDeployJobs = function (context) {
42884
42884
  return job.when === when;
42885
42885
  }).map(function (_a) {
42886
42886
  var jobName = _a.jobName;
42887
- return getJobRunScriptForJob(jobName);
42887
+ return getJobRunScriptForJob(jobName,
42888
+ // wait for completin on stop jobs, since stop will delete the jobs afterwards, so they will fail
42889
+ ["preStop", "postStop"].includes(when));
42888
42890
  });
42889
42891
  };
42890
42892
  var getCreateScheduleScripts = function () {
@@ -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-0d0565d8" || 0;
355467
+ exports.PIPELINE_IMAGE_TAG = "main-3c47862d" || 0;
355468
355468
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
355469
355469
 
355470
355470
  /***/ }),
@@ -357414,8 +357414,8 @@ var createGoogleCloudRunDeployJobs = function (context) {
357414
357414
  return getJobCreateScriptsForJob(jobName, job);
357415
357415
  }).flat();
357416
357416
  };
357417
- var getJobRunScriptForJob = function (jobName) {
357418
- return "gcloud beta run jobs execute ".concat(jobName, " ").concat(commonArgsString);
357417
+ var getJobRunScriptForJob = function (jobName, wait) {
357418
+ return "gcloud beta run jobs execute ".concat(jobName, " ").concat(commonArgsString).concat(wait ? " --wait" : "");
357419
357419
  };
357420
357420
  var getJobRunScripts = function (when) {
357421
357421
  return jobsWithNames.filter(function (_a) {
@@ -357423,7 +357423,9 @@ var createGoogleCloudRunDeployJobs = function (context) {
357423
357423
  return job.when === when;
357424
357424
  }).map(function (_a) {
357425
357425
  var jobName = _a.jobName;
357426
- return getJobRunScriptForJob(jobName);
357426
+ return getJobRunScriptForJob(jobName,
357427
+ // wait for completin on stop jobs, since stop will delete the jobs afterwards, so they will fail
357428
+ ["preStop", "postStop"].includes(when));
357427
357429
  });
357428
357430
  };
357429
357431
  var getCreateScheduleScripts = function () {
package/package.json CHANGED
@@ -52,7 +52,7 @@
52
52
  }
53
53
  ],
54
54
  "license": "MIT",
55
- "version": "0.0.0-main-0d0565d8",
55
+ "version": "0.0.0-main-3c47862d",
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-0d0565d8",
76
+ "@catladder/pipeline": "0.0.0-main-3c47862d",
77
77
  "@kubernetes/client-node": "^0.16.2",
78
78
  "@tsconfig/node14": "^1.0.1",
79
79
  "@types/common-tags": "^1.8.0",