@catladder/cli 0.0.0-main-ab77ebf7 → 0.0.0-main-332b079a

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.
@@ -40059,7 +40059,7 @@ exports.readConfigSync = readConfigSync;
40059
40059
 
40060
40060
  exports.__esModule = true;
40061
40061
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
40062
- exports.PIPELINE_IMAGE_TAG = "main-ab77ebf7" || 0;
40062
+ exports.PIPELINE_IMAGE_TAG = "main-332b079a" || 0;
40063
40063
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
40064
40064
 
40065
40065
  /***/ }),
@@ -41634,7 +41634,7 @@ var createGoogleCloudRunDeployJobs = function (context) {
41634
41634
  name = _b[0],
41635
41635
  job = _b[1];
41636
41636
 
41637
- return "gcloud beta run jobs delete ".concat(getJobRunScript(name), " ").concat(commonArgs);
41637
+ return "gcloud beta run jobs delete ".concat(getFullJobName(name), " ").concat(commonArgs);
41638
41638
  })), false);
41639
41639
 
41640
41640
  var baseStopJob = (0, base_1.getBaseDeploymentStopJob)(context);
@@ -41715,6 +41715,8 @@ exports.GCLOUD_RUN_DEPLOY_TYPE = exports.GCLOUD_RUN_CANONICAL_HOST_SUFFIX = expo
41715
41715
 
41716
41716
  var context_1 = __nccwpck_require__(2041);
41717
41717
 
41718
+ var gitlab_1 = __nccwpck_require__(4997);
41719
+
41718
41720
  var deployJob_1 = __nccwpck_require__(2256);
41719
41721
 
41720
41722
  exports.GCLOUD_DEPLOY_CREDENTIALS_KEY = "GCLOUD_DEPLOY_credentialsKey";
@@ -41738,7 +41740,7 @@ exports.GCLOUD_RUN_DEPLOY_TYPE = {
41738
41740
  name = _b[0],
41739
41741
  job = _b[1];
41740
41742
 
41741
- return ["CLOUD_RUN_JOB_TRIGGER_URL_" + name, "https://".concat(deployConfigRaw.region, "-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/").concat(deployConfigRaw.projectId, "/jobs/").concat(name, ":run")];
41743
+ return ["CLOUD_RUN_JOB_TRIGGER_URL_" + (0, gitlab_1.sanitizeForBashVariable)(name), "https://".concat(deployConfigRaw.region, "-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/").concat(deployConfigRaw.projectId, "/jobs/").concat(name, ":run")];
41742
41744
  })) : {};
41743
41745
  return __assign({
41744
41746
  HOST_CANONICAL: HOST_CANONICAL
@@ -44262,7 +44264,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
44262
44264
  };
44263
44265
 
44264
44266
  exports.__esModule = true;
44265
- exports.allowFailureInScripts = void 0;
44267
+ exports.sanitizeForBashVariable = exports.allowFailureInScripts = void 0;
44266
44268
 
44267
44269
  var allowFailureInScripts = function (script) {
44268
44270
  return __spreadArray(__spreadArray(["set +e"], __read(script), false), ["set -e" // reenable
@@ -44271,6 +44273,12 @@ var allowFailureInScripts = function (script) {
44271
44273
 
44272
44274
  exports.allowFailureInScripts = allowFailureInScripts;
44273
44275
 
44276
+ var sanitizeForBashVariable = function (name) {
44277
+ return name.replace(/-/g, "_");
44278
+ };
44279
+
44280
+ exports.sanitizeForBashVariable = sanitizeForBashVariable;
44281
+
44274
44282
  /***/ }),
44275
44283
 
44276
44284
  /***/ 7461:
@@ -350930,7 +350930,7 @@ exports.readConfigSync = readConfigSync;
350930
350930
 
350931
350931
  exports.__esModule = true;
350932
350932
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
350933
- exports.PIPELINE_IMAGE_TAG = "main-ab77ebf7" || 0;
350933
+ exports.PIPELINE_IMAGE_TAG = "main-332b079a" || 0;
350934
350934
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
350935
350935
 
350936
350936
  /***/ }),
@@ -352505,7 +352505,7 @@ var createGoogleCloudRunDeployJobs = function (context) {
352505
352505
  name = _b[0],
352506
352506
  job = _b[1];
352507
352507
 
352508
- return "gcloud beta run jobs delete ".concat(getJobRunScript(name), " ").concat(commonArgs);
352508
+ return "gcloud beta run jobs delete ".concat(getFullJobName(name), " ").concat(commonArgs);
352509
352509
  })), false);
352510
352510
 
352511
352511
  var baseStopJob = (0, base_1.getBaseDeploymentStopJob)(context);
@@ -352586,6 +352586,8 @@ exports.GCLOUD_RUN_DEPLOY_TYPE = exports.GCLOUD_RUN_CANONICAL_HOST_SUFFIX = expo
352586
352586
 
352587
352587
  var context_1 = __nccwpck_require__(22041);
352588
352588
 
352589
+ var gitlab_1 = __nccwpck_require__(84997);
352590
+
352589
352591
  var deployJob_1 = __nccwpck_require__(82256);
352590
352592
 
352591
352593
  exports.GCLOUD_DEPLOY_CREDENTIALS_KEY = "GCLOUD_DEPLOY_credentialsKey";
@@ -352609,7 +352611,7 @@ exports.GCLOUD_RUN_DEPLOY_TYPE = {
352609
352611
  name = _b[0],
352610
352612
  job = _b[1];
352611
352613
 
352612
- return ["CLOUD_RUN_JOB_TRIGGER_URL_" + name, "https://".concat(deployConfigRaw.region, "-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/").concat(deployConfigRaw.projectId, "/jobs/").concat(name, ":run")];
352614
+ return ["CLOUD_RUN_JOB_TRIGGER_URL_" + (0, gitlab_1.sanitizeForBashVariable)(name), "https://".concat(deployConfigRaw.region, "-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/").concat(deployConfigRaw.projectId, "/jobs/").concat(name, ":run")];
352613
352615
  })) : {};
352614
352616
  return __assign({
352615
352617
  HOST_CANONICAL: HOST_CANONICAL
@@ -355133,7 +355135,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
355133
355135
  };
355134
355136
 
355135
355137
  exports.__esModule = true;
355136
- exports.allowFailureInScripts = void 0;
355138
+ exports.sanitizeForBashVariable = exports.allowFailureInScripts = void 0;
355137
355139
 
355138
355140
  var allowFailureInScripts = function (script) {
355139
355141
  return __spreadArray(__spreadArray(["set +e"], __read(script), false), ["set -e" // reenable
@@ -355142,6 +355144,12 @@ var allowFailureInScripts = function (script) {
355142
355144
 
355143
355145
  exports.allowFailureInScripts = allowFailureInScripts;
355144
355146
 
355147
+ var sanitizeForBashVariable = function (name) {
355148
+ return name.replace(/-/g, "_");
355149
+ };
355150
+
355151
+ exports.sanitizeForBashVariable = sanitizeForBashVariable;
355152
+
355145
355153
  /***/ }),
355146
355154
 
355147
355155
  /***/ 37461:
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-ab77ebf7",
27
+ "@catladder/pipeline": "0.0.0-main-332b079a",
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-ab77ebf7",
60
+ "version": "0.0.0-main-332b079a",
61
61
  "stableVersion": "0.0.0"
62
62
  }