@catladder/cli 0.0.0-main-24bccda4 → 0.0.0-main-582c181c

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.
@@ -38860,6 +38860,10 @@ var requiresDockerBuild = function (context) {
38860
38860
  return true;
38861
38861
  }
38862
38862
 
38863
+ if ((0, deploy_1.isOfDeployType)(deployConfig, "dockerTag")) {
38864
+ return true;
38865
+ }
38866
+
38863
38867
  return false;
38864
38868
  };
38865
38869
 
@@ -39818,7 +39822,7 @@ exports.readConfigSync = readConfigSync;
39818
39822
 
39819
39823
  exports.__esModule = true;
39820
39824
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
39821
- exports.PIPELINE_IMAGE_TAG = "main-24bccda4" || 0;
39825
+ exports.PIPELINE_IMAGE_TAG = "main-582c181c" || 0;
39822
39826
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
39823
39827
 
39824
39828
  /***/ }),
@@ -40720,8 +40724,7 @@ var getBaseDeploymentJob = function (context) {
40720
40724
  };
40721
40725
  var hasDocker = (0, docker_1.requiresDockerBuild)(context);
40722
40726
  var isStoppable = (0, utils_1.contextIsStoppable)(context);
40723
- var autoStop = context.environment.envType === "review" ? "3 days" // auto stop is not working properly when branch is merged, so we do
40724
- : context.environment.envType === "dev" ? "3 weeks" : undefined; // if auto or manual is configured explicitly, use that
40727
+ var autoStop = context.environment.envType === "review" ? "2 week" : context.environment.envType === "dev" ? "4 weeks" : undefined; // if auto or manual is configured explicitly, use that
40725
40728
 
40726
40729
  var whenDeployDefined = context.componentConfig.deploy && context.componentConfig.deploy.when ? context.componentConfig.deploy.when : undefined; // otherwise auto deploy if env is not prod. If its prod, deploy automatically if stage is disabled
40727
40730
 
@@ -41067,8 +41070,6 @@ exports.createCustomDeployJobs = void 0;
41067
41070
 
41068
41071
  var lodash_1 = __nccwpck_require__(3255);
41069
41072
 
41070
- var __1 = __nccwpck_require__(5355);
41071
-
41072
41073
  var yarn_1 = __nccwpck_require__(464);
41073
41074
 
41074
41075
  var base_1 = __nccwpck_require__(9177);
@@ -41090,7 +41091,6 @@ var createCustomDeployJobs = function (context) {
41090
41091
  var baseDeploymentJob = (0, base_1.getBaseDeploymentJob)(context);
41091
41092
  var yarnInstall = (0, yarn_1.getYarnInstall)(context);
41092
41093
  return [(0, lodash_1.merge)({}, baseDeploymentJob, {
41093
- image: deployConfig.image ? (0, __1.getRunnerImage)(deployConfig.image) : undefined,
41094
41094
  script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(deployConfig.requiresYarnInstall ? yarnInstall : []), false), __read(deployConfig.script), false)
41095
41095
  })];
41096
41096
  };
@@ -41122,6 +41122,69 @@ exports.CUSTOM_DEPLOY_TYPE = {
41122
41122
 
41123
41123
  /***/ }),
41124
41124
 
41125
+ /***/ 7790:
41126
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
41127
+
41128
+ "use strict";
41129
+
41130
+
41131
+ exports.__esModule = true;
41132
+ exports.createDockerTagDeployJobs = void 0;
41133
+
41134
+ var lodash_1 = __nccwpck_require__(3255);
41135
+
41136
+ var docker_1 = __nccwpck_require__(3219);
41137
+
41138
+ var base_1 = __nccwpck_require__(9177);
41139
+
41140
+ var types_1 = __nccwpck_require__(3109);
41141
+
41142
+ var createDockerTagDeployJobs = function (context) {
41143
+ var deployConfig = context.componentConfig.deploy;
41144
+
41145
+ if (deployConfig === false) {
41146
+ return [];
41147
+ }
41148
+
41149
+ if (!(0, types_1.isOfDeployType)(deployConfig, "dockerTag")) {
41150
+ // should not happen
41151
+ throw new Error("deploy config is not dockerTag");
41152
+ }
41153
+
41154
+ var baseDeploymentJob = (0, base_1.getBaseDeploymentJob)(context);
41155
+ var tag = deployConfig.tag;
41156
+ return [(0, lodash_1.merge)({}, baseDeploymentJob, (0, docker_1.getDockerJobBaseProps)(context), {
41157
+ script: [docker_1.gitlabDockerLogin, "docker pull $DOCKER_IMAGE:$DOCKER_IMAGE_TAG", "docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG $DOCKER_IMAGE:".concat(tag), "docker push $DOCKER_IMAGE:".concat(tag), "echo \"pushed as $DOCKER_IMAGE:".concat(tag, "\"")]
41158
+ })];
41159
+ };
41160
+
41161
+ exports.createDockerTagDeployJobs = createDockerTagDeployJobs;
41162
+
41163
+ /***/ }),
41164
+
41165
+ /***/ 8990:
41166
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
41167
+
41168
+ "use strict";
41169
+
41170
+
41171
+ exports.__esModule = true;
41172
+ exports.DOCKER_TAG_DEPLOY_TYPE = void 0;
41173
+
41174
+ var deployJob_1 = __nccwpck_require__(7790);
41175
+
41176
+ exports.DOCKER_TAG_DEPLOY_TYPE = {
41177
+ jobs: deployJob_1.createDockerTagDeployJobs,
41178
+ defaults: function () {
41179
+ return {};
41180
+ },
41181
+ additionalSecretKeys: function () {
41182
+ return [];
41183
+ }
41184
+ };
41185
+
41186
+ /***/ }),
41187
+
41125
41188
  /***/ 223:
41126
41189
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
41127
41190
 
@@ -41152,6 +41215,8 @@ var cloudRun_1 = __nccwpck_require__(1344);
41152
41215
 
41153
41216
  var custom_1 = __nccwpck_require__(5599);
41154
41217
 
41218
+ var dockerTag_1 = __nccwpck_require__(8990);
41219
+
41155
41220
  var kubernetes_1 = __nccwpck_require__(5682);
41156
41221
 
41157
41222
  __exportStar(__nccwpck_require__(5682), exports);
@@ -41167,7 +41232,8 @@ __exportStar(__nccwpck_require__(1344), exports);
41167
41232
  exports.DEPLOY_TYPES = {
41168
41233
  kubernetes: kubernetes_1.KUBERNETES_DEPLOY_TYPE,
41169
41234
  custom: custom_1.CUSTOM_DEPLOY_TYPE,
41170
- "google-cloudrun": cloudRun_1.GCLOUD_RUN_DEPLOY_TYPE
41235
+ "google-cloudrun": cloudRun_1.GCLOUD_RUN_DEPLOY_TYPE,
41236
+ dockerTag: dockerTag_1.DOCKER_TAG_DEPLOY_TYPE
41171
41237
  };
41172
41238
 
41173
41239
  /***/ }),
@@ -41777,6 +41843,16 @@ exports.processSecretsAsFiles = processSecretsAsFiles;
41777
41843
  "use strict";
41778
41844
 
41779
41845
 
41846
+ exports.__esModule = true;
41847
+
41848
+ /***/ }),
41849
+
41850
+ /***/ 4738:
41851
+ /***/ ((__unused_webpack_module, exports) => {
41852
+
41853
+ "use strict";
41854
+
41855
+
41780
41856
  exports.__esModule = true;
41781
41857
 
41782
41858
  /***/ }),
@@ -41823,6 +41899,8 @@ __exportStar(__nccwpck_require__(2689), exports);
41823
41899
 
41824
41900
  __exportStar(__nccwpck_require__(5299), exports);
41825
41901
 
41902
+ __exportStar(__nccwpck_require__(4738), exports);
41903
+
41826
41904
  var isOfDeployType = function (t) {
41827
41905
  var types = [];
41828
41906
 
@@ -349734,6 +349734,10 @@ var requiresDockerBuild = function (context) {
349734
349734
  return true;
349735
349735
  }
349736
349736
 
349737
+ if ((0, deploy_1.isOfDeployType)(deployConfig, "dockerTag")) {
349738
+ return true;
349739
+ }
349740
+
349737
349741
  return false;
349738
349742
  };
349739
349743
 
@@ -350692,7 +350696,7 @@ exports.readConfigSync = readConfigSync;
350692
350696
 
350693
350697
  exports.__esModule = true;
350694
350698
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
350695
- exports.PIPELINE_IMAGE_TAG = "main-24bccda4" || 0;
350699
+ exports.PIPELINE_IMAGE_TAG = "main-582c181c" || 0;
350696
350700
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
350697
350701
 
350698
350702
  /***/ }),
@@ -351594,8 +351598,7 @@ var getBaseDeploymentJob = function (context) {
351594
351598
  };
351595
351599
  var hasDocker = (0, docker_1.requiresDockerBuild)(context);
351596
351600
  var isStoppable = (0, utils_1.contextIsStoppable)(context);
351597
- var autoStop = context.environment.envType === "review" ? "3 days" // auto stop is not working properly when branch is merged, so we do
351598
- : context.environment.envType === "dev" ? "3 weeks" : undefined; // if auto or manual is configured explicitly, use that
351601
+ var autoStop = context.environment.envType === "review" ? "2 week" : context.environment.envType === "dev" ? "4 weeks" : undefined; // if auto or manual is configured explicitly, use that
351599
351602
 
351600
351603
  var whenDeployDefined = context.componentConfig.deploy && context.componentConfig.deploy.when ? context.componentConfig.deploy.when : undefined; // otherwise auto deploy if env is not prod. If its prod, deploy automatically if stage is disabled
351601
351604
 
@@ -351941,8 +351944,6 @@ exports.createCustomDeployJobs = void 0;
351941
351944
 
351942
351945
  var lodash_1 = __nccwpck_require__(23255);
351943
351946
 
351944
- var __1 = __nccwpck_require__(25355);
351945
-
351946
351947
  var yarn_1 = __nccwpck_require__(10464);
351947
351948
 
351948
351949
  var base_1 = __nccwpck_require__(89177);
@@ -351964,7 +351965,6 @@ var createCustomDeployJobs = function (context) {
351964
351965
  var baseDeploymentJob = (0, base_1.getBaseDeploymentJob)(context);
351965
351966
  var yarnInstall = (0, yarn_1.getYarnInstall)(context);
351966
351967
  return [(0, lodash_1.merge)({}, baseDeploymentJob, {
351967
- image: deployConfig.image ? (0, __1.getRunnerImage)(deployConfig.image) : undefined,
351968
351968
  script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(deployConfig.requiresYarnInstall ? yarnInstall : []), false), __read(deployConfig.script), false)
351969
351969
  })];
351970
351970
  };
@@ -351996,6 +351996,69 @@ exports.CUSTOM_DEPLOY_TYPE = {
351996
351996
 
351997
351997
  /***/ }),
351998
351998
 
351999
+ /***/ 27790:
352000
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
352001
+
352002
+ "use strict";
352003
+
352004
+
352005
+ exports.__esModule = true;
352006
+ exports.createDockerTagDeployJobs = void 0;
352007
+
352008
+ var lodash_1 = __nccwpck_require__(23255);
352009
+
352010
+ var docker_1 = __nccwpck_require__(33219);
352011
+
352012
+ var base_1 = __nccwpck_require__(89177);
352013
+
352014
+ var types_1 = __nccwpck_require__(63109);
352015
+
352016
+ var createDockerTagDeployJobs = function (context) {
352017
+ var deployConfig = context.componentConfig.deploy;
352018
+
352019
+ if (deployConfig === false) {
352020
+ return [];
352021
+ }
352022
+
352023
+ if (!(0, types_1.isOfDeployType)(deployConfig, "dockerTag")) {
352024
+ // should not happen
352025
+ throw new Error("deploy config is not dockerTag");
352026
+ }
352027
+
352028
+ var baseDeploymentJob = (0, base_1.getBaseDeploymentJob)(context);
352029
+ var tag = deployConfig.tag;
352030
+ return [(0, lodash_1.merge)({}, baseDeploymentJob, (0, docker_1.getDockerJobBaseProps)(context), {
352031
+ script: [docker_1.gitlabDockerLogin, "docker pull $DOCKER_IMAGE:$DOCKER_IMAGE_TAG", "docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG $DOCKER_IMAGE:".concat(tag), "docker push $DOCKER_IMAGE:".concat(tag), "echo \"pushed as $DOCKER_IMAGE:".concat(tag, "\"")]
352032
+ })];
352033
+ };
352034
+
352035
+ exports.createDockerTagDeployJobs = createDockerTagDeployJobs;
352036
+
352037
+ /***/ }),
352038
+
352039
+ /***/ 18990:
352040
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
352041
+
352042
+ "use strict";
352043
+
352044
+
352045
+ exports.__esModule = true;
352046
+ exports.DOCKER_TAG_DEPLOY_TYPE = void 0;
352047
+
352048
+ var deployJob_1 = __nccwpck_require__(27790);
352049
+
352050
+ exports.DOCKER_TAG_DEPLOY_TYPE = {
352051
+ jobs: deployJob_1.createDockerTagDeployJobs,
352052
+ defaults: function () {
352053
+ return {};
352054
+ },
352055
+ additionalSecretKeys: function () {
352056
+ return [];
352057
+ }
352058
+ };
352059
+
352060
+ /***/ }),
352061
+
351999
352062
  /***/ 90223:
352000
352063
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
352001
352064
 
@@ -352026,6 +352089,8 @@ var cloudRun_1 = __nccwpck_require__(81344);
352026
352089
 
352027
352090
  var custom_1 = __nccwpck_require__(75599);
352028
352091
 
352092
+ var dockerTag_1 = __nccwpck_require__(18990);
352093
+
352029
352094
  var kubernetes_1 = __nccwpck_require__(95682);
352030
352095
 
352031
352096
  __exportStar(__nccwpck_require__(95682), exports);
@@ -352041,7 +352106,8 @@ __exportStar(__nccwpck_require__(81344), exports);
352041
352106
  exports.DEPLOY_TYPES = {
352042
352107
  kubernetes: kubernetes_1.KUBERNETES_DEPLOY_TYPE,
352043
352108
  custom: custom_1.CUSTOM_DEPLOY_TYPE,
352044
- "google-cloudrun": cloudRun_1.GCLOUD_RUN_DEPLOY_TYPE
352109
+ "google-cloudrun": cloudRun_1.GCLOUD_RUN_DEPLOY_TYPE,
352110
+ dockerTag: dockerTag_1.DOCKER_TAG_DEPLOY_TYPE
352045
352111
  };
352046
352112
 
352047
352113
  /***/ }),
@@ -352651,6 +352717,16 @@ exports.processSecretsAsFiles = processSecretsAsFiles;
352651
352717
  "use strict";
352652
352718
 
352653
352719
 
352720
+ exports.__esModule = true;
352721
+
352722
+ /***/ }),
352723
+
352724
+ /***/ 84738:
352725
+ /***/ ((__unused_webpack_module, exports) => {
352726
+
352727
+ "use strict";
352728
+
352729
+
352654
352730
  exports.__esModule = true;
352655
352731
 
352656
352732
  /***/ }),
@@ -352697,6 +352773,8 @@ __exportStar(__nccwpck_require__(22689), exports);
352697
352773
 
352698
352774
  __exportStar(__nccwpck_require__(15299), exports);
352699
352775
 
352776
+ __exportStar(__nccwpck_require__(84738), exports);
352777
+
352700
352778
  var isOfDeployType = function (t) {
352701
352779
  var types = [];
352702
352780