@catladder/cli 0.0.0-refactor-deploy-03b83ec7 → 0.0.0-refactor-deploy-278d68f1

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.
@@ -40830,7 +40830,7 @@ exports.readConfigSync = readConfigSync;
40830
40830
 
40831
40831
  exports.__esModule = true;
40832
40832
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
40833
- exports.PIPELINE_IMAGE_TAG = "refactor-deploy-03b83ec7" || 0;
40833
+ exports.PIPELINE_IMAGE_TAG = "refactor-deploy-278d68f1" || 0;
40834
40834
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
40835
40835
 
40836
40836
  /***/ }),
@@ -42084,7 +42084,7 @@ exports.BASE_RETRY = {
42084
42084
 
42085
42085
  /***/ }),
42086
42086
 
42087
- /***/ 2866:
42087
+ /***/ 6166:
42088
42088
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
42089
42089
 
42090
42090
  "use strict";
@@ -42132,20 +42132,14 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
42132
42132
  return to.concat(ar || Array.prototype.slice.call(from));
42133
42133
  };
42134
42134
  exports.__esModule = true;
42135
- exports.getBaseRollbackJob = exports.getBaseDeploymentStopJob = exports.getBaseDeploymentJob = exports.ROLLBACK_JOB_NAME = exports.STOP_JOB_NAME = exports.DEPLOY_JOB_NAME = void 0;
42135
+ exports.getBaseDeploymentJob = exports.DEPLOY_JOB_NAME = void 0;
42136
42136
  var docker_1 = __nccwpck_require__(3219);
42137
42137
  var sbom_1 = __nccwpck_require__(9927);
42138
42138
  var sbom_2 = __nccwpck_require__(5928);
42139
42139
  var utils_1 = __nccwpck_require__(2757);
42140
+ var stop_1 = __nccwpck_require__(8297);
42141
+ var variables_1 = __nccwpck_require__(7040);
42140
42142
  exports.DEPLOY_JOB_NAME = "🚀 Deploy";
42141
- exports.STOP_JOB_NAME = "🛑 Stop âš ī¸";
42142
- exports.ROLLBACK_JOB_NAME = "â†Šī¸ Rollback âš ī¸";
42143
- var DEPLOY_RUNNER_VARIABLES = {
42144
- KUBERNETES_CPU_REQUEST: "0.5",
42145
- KUBERNETES_CPU_LIMIT: "1",
42146
- KUBERNETES_MEMORY_REQUEST: "200Mi",
42147
- KUBERNETES_MEMORY_LIMIT: "400Mi"
42148
- };
42149
42143
  var getBaseDeploymentJob = function (context) {
42150
42144
  var _a, _b, _c, _d;
42151
42145
  var hasDocker = (0, docker_1.requiresDockerBuild)(context);
@@ -42186,57 +42180,148 @@ var getBaseDeploymentJob = function (context) {
42186
42180
  }],
42187
42181
  allow_failure: whenDeploy === "manual" ? true : false,
42188
42182
  stage: "deploy",
42189
- variables: __assign(__assign(__assign(__assign(__assign({}, DEPLOY_RUNNER_VARIABLES), context.environment.envVars), hasDocker ? (0, docker_1.getDockerImageVariables)(context) : {}), context.environment.jobOnlyVars.deploy.envVars), context.componentConfig.deploy ? (_d = context.componentConfig.deploy.extraVars) !== null && _d !== void 0 ? _d : {} : {}),
42183
+ variables: __assign(__assign(__assign(__assign(__assign({}, variables_1.DEPLOY_RUNNER_VARIABLES), context.environment.envVars), hasDocker ? (0, docker_1.getDockerImageVariables)(context) : {}), context.environment.jobOnlyVars.deploy.envVars), context.componentConfig.deploy ? (_d = context.componentConfig.deploy.extraVars) !== null && _d !== void 0 ? _d : {} : {}),
42190
42184
  environment: __assign(__assign({}, context.environment.gitlabEnvironment), isStoppable ? {
42191
- on_stop: exports.STOP_JOB_NAME,
42185
+ on_stop: stop_1.STOP_JOB_NAME,
42192
42186
  auto_stop_in: autoStop
42193
42187
  } : {}),
42194
42188
  jobTags: context.componentConfig.deploy ? context.componentConfig.deploy.jobTags : undefined
42195
42189
  };
42196
42190
  };
42197
42191
  exports.getBaseDeploymentJob = getBaseDeploymentJob;
42198
- var getBaseDeploymentStopJob = function (context) {
42192
+
42193
+ /***/ }),
42194
+
42195
+ /***/ 2866:
42196
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
42197
+
42198
+ "use strict";
42199
+
42200
+
42201
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
42202
+ if (k2 === undefined) k2 = k;
42203
+ Object.defineProperty(o, k2, {
42204
+ enumerable: true,
42205
+ get: function () {
42206
+ return m[k];
42207
+ }
42208
+ });
42209
+ } : function (o, m, k, k2) {
42210
+ if (k2 === undefined) k2 = k;
42211
+ o[k2] = m[k];
42212
+ });
42213
+ var __exportStar = this && this.__exportStar || function (m, exports) {
42214
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
42215
+ };
42216
+ exports.__esModule = true;
42217
+ __exportStar(__nccwpck_require__(6166), exports);
42218
+ __exportStar(__nccwpck_require__(9567), exports);
42219
+ __exportStar(__nccwpck_require__(8297), exports);
42220
+
42221
+ /***/ }),
42222
+
42223
+ /***/ 9567:
42224
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
42225
+
42226
+ "use strict";
42227
+
42228
+
42229
+ var __assign = this && this.__assign || function () {
42230
+ __assign = Object.assign || function (t) {
42231
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
42232
+ s = arguments[i];
42233
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
42234
+ }
42235
+ return t;
42236
+ };
42237
+ return __assign.apply(this, arguments);
42238
+ };
42239
+ exports.__esModule = true;
42240
+ exports.getBaseRollbackJob = exports.ROLLBACK_JOB_NAME = void 0;
42241
+ var variables_1 = __nccwpck_require__(7040);
42242
+ exports.ROLLBACK_JOB_NAME = "â†Šī¸ Rollback âš ī¸";
42243
+ var getBaseRollbackJob = function (context) {
42199
42244
  return {
42200
- name: exports.STOP_JOB_NAME,
42245
+ name: exports.ROLLBACK_JOB_NAME,
42201
42246
  envMode: "stagePerEnv",
42202
42247
  needs: [],
42203
42248
  rules: [{
42204
- "if": "$CI_COMMIT_BRANCH =~ /^[0-9]+\\.([0-9]+|x)\\.x$/",
42205
- when: "on_success",
42206
- allow_failure: true
42207
- }, {
42208
42249
  when: "manual",
42209
42250
  allow_failure: true
42210
42251
  }],
42211
- variables: __assign(__assign(__assign({}, DEPLOY_RUNNER_VARIABLES), context.environment.jobOnlyVars.deploy.envVars), {
42252
+ variables: __assign(__assign(__assign({}, variables_1.DEPLOY_RUNNER_VARIABLES), context.environment.jobOnlyVars.deploy.envVars), {
42212
42253
  GIT_STRATEGY: "none"
42213
42254
  }),
42214
- stage: "stop",
42255
+ stage: "rollback",
42215
42256
  environment: __assign(__assign({}, context.environment.gitlabEnvironment), {
42216
- action: "stop"
42257
+ action: "access"
42217
42258
  })
42218
42259
  };
42219
42260
  };
42220
- exports.getBaseDeploymentStopJob = getBaseDeploymentStopJob;
42221
- var getBaseRollbackJob = function (context) {
42261
+ exports.getBaseRollbackJob = getBaseRollbackJob;
42262
+
42263
+ /***/ }),
42264
+
42265
+ /***/ 8297:
42266
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
42267
+
42268
+ "use strict";
42269
+
42270
+
42271
+ var __assign = this && this.__assign || function () {
42272
+ __assign = Object.assign || function (t) {
42273
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
42274
+ s = arguments[i];
42275
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
42276
+ }
42277
+ return t;
42278
+ };
42279
+ return __assign.apply(this, arguments);
42280
+ };
42281
+ exports.__esModule = true;
42282
+ exports.getBaseDeploymentStopJob = exports.STOP_JOB_NAME = void 0;
42283
+ var variables_1 = __nccwpck_require__(7040);
42284
+ exports.STOP_JOB_NAME = "🛑 Stop âš ī¸";
42285
+ var getBaseDeploymentStopJob = function (context) {
42222
42286
  return {
42223
- name: exports.ROLLBACK_JOB_NAME,
42287
+ name: exports.STOP_JOB_NAME,
42224
42288
  envMode: "stagePerEnv",
42225
42289
  needs: [],
42226
42290
  rules: [{
42291
+ "if": "$CI_COMMIT_BRANCH =~ /^[0-9]+\\.([0-9]+|x)\\.x$/",
42292
+ when: "on_success",
42293
+ allow_failure: true
42294
+ }, {
42227
42295
  when: "manual",
42228
42296
  allow_failure: true
42229
42297
  }],
42230
- variables: __assign(__assign(__assign({}, DEPLOY_RUNNER_VARIABLES), context.environment.jobOnlyVars.deploy.envVars), {
42298
+ variables: __assign(__assign(__assign({}, variables_1.DEPLOY_RUNNER_VARIABLES), context.environment.jobOnlyVars.deploy.envVars), {
42231
42299
  GIT_STRATEGY: "none"
42232
42300
  }),
42233
- stage: "rollback",
42301
+ stage: "stop",
42234
42302
  environment: __assign(__assign({}, context.environment.gitlabEnvironment), {
42235
- action: "access"
42303
+ action: "stop"
42236
42304
  })
42237
42305
  };
42238
42306
  };
42239
- exports.getBaseRollbackJob = getBaseRollbackJob;
42307
+ exports.getBaseDeploymentStopJob = getBaseDeploymentStopJob;
42308
+
42309
+ /***/ }),
42310
+
42311
+ /***/ 7040:
42312
+ /***/ ((__unused_webpack_module, exports) => {
42313
+
42314
+ "use strict";
42315
+
42316
+
42317
+ exports.__esModule = true;
42318
+ exports.DEPLOY_RUNNER_VARIABLES = void 0;
42319
+ exports.DEPLOY_RUNNER_VARIABLES = {
42320
+ KUBERNETES_CPU_REQUEST: "0.5",
42321
+ KUBERNETES_CPU_LIMIT: "1",
42322
+ KUBERNETES_MEMORY_REQUEST: "200Mi",
42323
+ KUBERNETES_MEMORY_LIMIT: "400Mi"
42324
+ };
42240
42325
 
42241
42326
  /***/ }),
42242
42327
 
@@ -351895,7 +351895,7 @@ exports.readConfigSync = readConfigSync;
351895
351895
 
351896
351896
  exports.__esModule = true;
351897
351897
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
351898
- exports.PIPELINE_IMAGE_TAG = "refactor-deploy-03b83ec7" || 0;
351898
+ exports.PIPELINE_IMAGE_TAG = "refactor-deploy-278d68f1" || 0;
351899
351899
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
351900
351900
 
351901
351901
  /***/ }),
@@ -353149,7 +353149,7 @@ exports.BASE_RETRY = {
353149
353149
 
353150
353150
  /***/ }),
353151
353151
 
353152
- /***/ 82866:
353152
+ /***/ 26166:
353153
353153
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
353154
353154
 
353155
353155
  "use strict";
@@ -353197,20 +353197,14 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
353197
353197
  return to.concat(ar || Array.prototype.slice.call(from));
353198
353198
  };
353199
353199
  exports.__esModule = true;
353200
- exports.getBaseRollbackJob = exports.getBaseDeploymentStopJob = exports.getBaseDeploymentJob = exports.ROLLBACK_JOB_NAME = exports.STOP_JOB_NAME = exports.DEPLOY_JOB_NAME = void 0;
353200
+ exports.getBaseDeploymentJob = exports.DEPLOY_JOB_NAME = void 0;
353201
353201
  var docker_1 = __nccwpck_require__(33219);
353202
353202
  var sbom_1 = __nccwpck_require__(9927);
353203
353203
  var sbom_2 = __nccwpck_require__(65928);
353204
353204
  var utils_1 = __nccwpck_require__(92757);
353205
+ var stop_1 = __nccwpck_require__(58297);
353206
+ var variables_1 = __nccwpck_require__(67040);
353205
353207
  exports.DEPLOY_JOB_NAME = "🚀 Deploy";
353206
- exports.STOP_JOB_NAME = "🛑 Stop âš ī¸";
353207
- exports.ROLLBACK_JOB_NAME = "â†Šī¸ Rollback âš ī¸";
353208
- var DEPLOY_RUNNER_VARIABLES = {
353209
- KUBERNETES_CPU_REQUEST: "0.5",
353210
- KUBERNETES_CPU_LIMIT: "1",
353211
- KUBERNETES_MEMORY_REQUEST: "200Mi",
353212
- KUBERNETES_MEMORY_LIMIT: "400Mi"
353213
- };
353214
353208
  var getBaseDeploymentJob = function (context) {
353215
353209
  var _a, _b, _c, _d;
353216
353210
  var hasDocker = (0, docker_1.requiresDockerBuild)(context);
@@ -353251,57 +353245,148 @@ var getBaseDeploymentJob = function (context) {
353251
353245
  }],
353252
353246
  allow_failure: whenDeploy === "manual" ? true : false,
353253
353247
  stage: "deploy",
353254
- variables: __assign(__assign(__assign(__assign(__assign({}, DEPLOY_RUNNER_VARIABLES), context.environment.envVars), hasDocker ? (0, docker_1.getDockerImageVariables)(context) : {}), context.environment.jobOnlyVars.deploy.envVars), context.componentConfig.deploy ? (_d = context.componentConfig.deploy.extraVars) !== null && _d !== void 0 ? _d : {} : {}),
353248
+ variables: __assign(__assign(__assign(__assign(__assign({}, variables_1.DEPLOY_RUNNER_VARIABLES), context.environment.envVars), hasDocker ? (0, docker_1.getDockerImageVariables)(context) : {}), context.environment.jobOnlyVars.deploy.envVars), context.componentConfig.deploy ? (_d = context.componentConfig.deploy.extraVars) !== null && _d !== void 0 ? _d : {} : {}),
353255
353249
  environment: __assign(__assign({}, context.environment.gitlabEnvironment), isStoppable ? {
353256
- on_stop: exports.STOP_JOB_NAME,
353250
+ on_stop: stop_1.STOP_JOB_NAME,
353257
353251
  auto_stop_in: autoStop
353258
353252
  } : {}),
353259
353253
  jobTags: context.componentConfig.deploy ? context.componentConfig.deploy.jobTags : undefined
353260
353254
  };
353261
353255
  };
353262
353256
  exports.getBaseDeploymentJob = getBaseDeploymentJob;
353263
- var getBaseDeploymentStopJob = function (context) {
353257
+
353258
+ /***/ }),
353259
+
353260
+ /***/ 82866:
353261
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
353262
+
353263
+ "use strict";
353264
+
353265
+
353266
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
353267
+ if (k2 === undefined) k2 = k;
353268
+ Object.defineProperty(o, k2, {
353269
+ enumerable: true,
353270
+ get: function () {
353271
+ return m[k];
353272
+ }
353273
+ });
353274
+ } : function (o, m, k, k2) {
353275
+ if (k2 === undefined) k2 = k;
353276
+ o[k2] = m[k];
353277
+ });
353278
+ var __exportStar = this && this.__exportStar || function (m, exports) {
353279
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
353280
+ };
353281
+ exports.__esModule = true;
353282
+ __exportStar(__nccwpck_require__(26166), exports);
353283
+ __exportStar(__nccwpck_require__(99567), exports);
353284
+ __exportStar(__nccwpck_require__(58297), exports);
353285
+
353286
+ /***/ }),
353287
+
353288
+ /***/ 99567:
353289
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
353290
+
353291
+ "use strict";
353292
+
353293
+
353294
+ var __assign = this && this.__assign || function () {
353295
+ __assign = Object.assign || function (t) {
353296
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
353297
+ s = arguments[i];
353298
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
353299
+ }
353300
+ return t;
353301
+ };
353302
+ return __assign.apply(this, arguments);
353303
+ };
353304
+ exports.__esModule = true;
353305
+ exports.getBaseRollbackJob = exports.ROLLBACK_JOB_NAME = void 0;
353306
+ var variables_1 = __nccwpck_require__(67040);
353307
+ exports.ROLLBACK_JOB_NAME = "â†Šī¸ Rollback âš ī¸";
353308
+ var getBaseRollbackJob = function (context) {
353264
353309
  return {
353265
- name: exports.STOP_JOB_NAME,
353310
+ name: exports.ROLLBACK_JOB_NAME,
353266
353311
  envMode: "stagePerEnv",
353267
353312
  needs: [],
353268
353313
  rules: [{
353269
- "if": "$CI_COMMIT_BRANCH =~ /^[0-9]+\\.([0-9]+|x)\\.x$/",
353270
- when: "on_success",
353271
- allow_failure: true
353272
- }, {
353273
353314
  when: "manual",
353274
353315
  allow_failure: true
353275
353316
  }],
353276
- variables: __assign(__assign(__assign({}, DEPLOY_RUNNER_VARIABLES), context.environment.jobOnlyVars.deploy.envVars), {
353317
+ variables: __assign(__assign(__assign({}, variables_1.DEPLOY_RUNNER_VARIABLES), context.environment.jobOnlyVars.deploy.envVars), {
353277
353318
  GIT_STRATEGY: "none"
353278
353319
  }),
353279
- stage: "stop",
353320
+ stage: "rollback",
353280
353321
  environment: __assign(__assign({}, context.environment.gitlabEnvironment), {
353281
- action: "stop"
353322
+ action: "access"
353282
353323
  })
353283
353324
  };
353284
353325
  };
353285
- exports.getBaseDeploymentStopJob = getBaseDeploymentStopJob;
353286
- var getBaseRollbackJob = function (context) {
353326
+ exports.getBaseRollbackJob = getBaseRollbackJob;
353327
+
353328
+ /***/ }),
353329
+
353330
+ /***/ 58297:
353331
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
353332
+
353333
+ "use strict";
353334
+
353335
+
353336
+ var __assign = this && this.__assign || function () {
353337
+ __assign = Object.assign || function (t) {
353338
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
353339
+ s = arguments[i];
353340
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
353341
+ }
353342
+ return t;
353343
+ };
353344
+ return __assign.apply(this, arguments);
353345
+ };
353346
+ exports.__esModule = true;
353347
+ exports.getBaseDeploymentStopJob = exports.STOP_JOB_NAME = void 0;
353348
+ var variables_1 = __nccwpck_require__(67040);
353349
+ exports.STOP_JOB_NAME = "🛑 Stop âš ī¸";
353350
+ var getBaseDeploymentStopJob = function (context) {
353287
353351
  return {
353288
- name: exports.ROLLBACK_JOB_NAME,
353352
+ name: exports.STOP_JOB_NAME,
353289
353353
  envMode: "stagePerEnv",
353290
353354
  needs: [],
353291
353355
  rules: [{
353356
+ "if": "$CI_COMMIT_BRANCH =~ /^[0-9]+\\.([0-9]+|x)\\.x$/",
353357
+ when: "on_success",
353358
+ allow_failure: true
353359
+ }, {
353292
353360
  when: "manual",
353293
353361
  allow_failure: true
353294
353362
  }],
353295
- variables: __assign(__assign(__assign({}, DEPLOY_RUNNER_VARIABLES), context.environment.jobOnlyVars.deploy.envVars), {
353363
+ variables: __assign(__assign(__assign({}, variables_1.DEPLOY_RUNNER_VARIABLES), context.environment.jobOnlyVars.deploy.envVars), {
353296
353364
  GIT_STRATEGY: "none"
353297
353365
  }),
353298
- stage: "rollback",
353366
+ stage: "stop",
353299
353367
  environment: __assign(__assign({}, context.environment.gitlabEnvironment), {
353300
- action: "access"
353368
+ action: "stop"
353301
353369
  })
353302
353370
  };
353303
353371
  };
353304
- exports.getBaseRollbackJob = getBaseRollbackJob;
353372
+ exports.getBaseDeploymentStopJob = getBaseDeploymentStopJob;
353373
+
353374
+ /***/ }),
353375
+
353376
+ /***/ 67040:
353377
+ /***/ ((__unused_webpack_module, exports) => {
353378
+
353379
+ "use strict";
353380
+
353381
+
353382
+ exports.__esModule = true;
353383
+ exports.DEPLOY_RUNNER_VARIABLES = void 0;
353384
+ exports.DEPLOY_RUNNER_VARIABLES = {
353385
+ KUBERNETES_CPU_REQUEST: "0.5",
353386
+ KUBERNETES_CPU_LIMIT: "1",
353387
+ KUBERNETES_MEMORY_REQUEST: "200Mi",
353388
+ KUBERNETES_MEMORY_LIMIT: "400Mi"
353389
+ };
353305
353390
 
353306
353391
  /***/ }),
353307
353392
 
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-refactor-deploy-03b83ec7",
27
+ "@catladder/pipeline": "0.0.0-refactor-deploy-278d68f1",
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-refactor-deploy-03b83ec7",
60
+ "version": "0.0.0-refactor-deploy-278d68f1",
61
61
  "stableVersion": "0.0.0"
62
62
  }