@catladder/cli 0.0.0-main-d184a023 → 0.0.0-main-a38769c0

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.
@@ -39743,29 +39743,25 @@ exports.createRailsBuildJobs = void 0;
39743
39743
  var types_1 = __nccwpck_require__(1197);
39744
39744
  var docker_1 = __nccwpck_require__(3219);
39745
39745
  var createRailsBuildJobs = function (context) {
39746
- var _a, _b, _c, _d, _e, _f;
39746
+ var _a, _b, _c;
39747
39747
  var buildConfig = context.componentConfig.build;
39748
39748
  if (!(0, types_1.isOfBuildType)(buildConfig, "rails")) {
39749
39749
  // should not happen
39750
39750
  throw new Error("build type is not rails");
39751
39751
  }
39752
39752
  var cnbConf = buildConfig.cnbBuilder;
39753
- // backwards compatabilty with CNB_ENV_VARS
39754
- // TODO: remove when all projects are migrated
39755
- var packEnvArgs = (_c = (_b = (_a = buildConfig.extraVars) === null || _a === void 0 ? void 0 : _a.CNB_ENV_VARS) === null || _b === void 0 ? void 0 : _b.split(" ").map(function (v) {
39756
- return "--env '".concat(v, "'");
39757
- })) !== null && _c !== void 0 ? _c : Object.entries((_d = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.buildVars) !== null && _d !== void 0 ? _d : {}).map(function (_a) {
39753
+ var packEnvArgs = Object.entries((_a = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.buildVars) !== null && _a !== void 0 ? _a : {}).map(function (_a) {
39758
39754
  var _b = __read(_a, 2),
39759
39755
  k = _b[0],
39760
39756
  v = _b[1];
39761
39757
  return "--env '".concat(k).concat(v ? "=".concat(v) : "", "'");
39762
- });
39758
+ }).join(" ");
39763
39759
  return [(0, docker_1.createDockerBuildJobBase)(context, {
39764
39760
  variables: context.componentConfig.build.extraVars,
39765
39761
  // custom script
39766
39762
  script: [docker_1.gitlabDockerLogin, "docker pull $DOCKER_CACHE_IMAGE || true", "wget --output-document=- https://github.com/buildpacks/pack/releases/download/v".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "/pack-v").concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "-linux.tgz | tar -zx --directory /usr/local/bin pack"), "chmod +x /usr/local/bin/pack",
39767
39763
  // replace private git ssh gem sources with https to make bundler with credentials via env var work
39768
- "sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock", "pack build \"$DOCKER_IMAGE:$DOCKER_IMAGE_TAG\" --builder '".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image, "' --publish --cache-image \"$DOCKER_CACHE_IMAGE\" ").concat(packEnvArgs.join(" "), " ").concat((_f = (_e = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _e === void 0 ? void 0 : _e.join(" ")) !== null && _f !== void 0 ? _f : "")]
39764
+ "sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock", "pack build \"$DOCKER_IMAGE:$DOCKER_IMAGE_TAG\" --builder '".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image, "' --publish --cache-image \"$DOCKER_CACHE_IMAGE\" ").concat(packEnvArgs, " ").concat((_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : "")]
39769
39765
  })];
39770
39766
  };
39771
39767
  exports.createRailsBuildJobs = createRailsBuildJobs;
@@ -40112,7 +40108,7 @@ exports.readConfigSync = readConfigSync;
40112
40108
 
40113
40109
  exports.__esModule = true;
40114
40110
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
40115
- exports.PIPELINE_IMAGE_TAG = "main-d184a023" || 0;
40111
+ exports.PIPELINE_IMAGE_TAG = "main-a38769c0" || 0;
40116
40112
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
40117
40113
 
40118
40114
  /***/ }),
@@ -351075,29 +351075,25 @@ exports.createRailsBuildJobs = void 0;
351075
351075
  var types_1 = __nccwpck_require__(71197);
351076
351076
  var docker_1 = __nccwpck_require__(33219);
351077
351077
  var createRailsBuildJobs = function (context) {
351078
- var _a, _b, _c, _d, _e, _f;
351078
+ var _a, _b, _c;
351079
351079
  var buildConfig = context.componentConfig.build;
351080
351080
  if (!(0, types_1.isOfBuildType)(buildConfig, "rails")) {
351081
351081
  // should not happen
351082
351082
  throw new Error("build type is not rails");
351083
351083
  }
351084
351084
  var cnbConf = buildConfig.cnbBuilder;
351085
- // backwards compatabilty with CNB_ENV_VARS
351086
- // TODO: remove when all projects are migrated
351087
- var packEnvArgs = (_c = (_b = (_a = buildConfig.extraVars) === null || _a === void 0 ? void 0 : _a.CNB_ENV_VARS) === null || _b === void 0 ? void 0 : _b.split(" ").map(function (v) {
351088
- return "--env '".concat(v, "'");
351089
- })) !== null && _c !== void 0 ? _c : Object.entries((_d = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.buildVars) !== null && _d !== void 0 ? _d : {}).map(function (_a) {
351085
+ var packEnvArgs = Object.entries((_a = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.buildVars) !== null && _a !== void 0 ? _a : {}).map(function (_a) {
351090
351086
  var _b = __read(_a, 2),
351091
351087
  k = _b[0],
351092
351088
  v = _b[1];
351093
351089
  return "--env '".concat(k).concat(v ? "=".concat(v) : "", "'");
351094
- });
351090
+ }).join(" ");
351095
351091
  return [(0, docker_1.createDockerBuildJobBase)(context, {
351096
351092
  variables: context.componentConfig.build.extraVars,
351097
351093
  // custom script
351098
351094
  script: [docker_1.gitlabDockerLogin, "docker pull $DOCKER_CACHE_IMAGE || true", "wget --output-document=- https://github.com/buildpacks/pack/releases/download/v".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "/pack-v").concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "-linux.tgz | tar -zx --directory /usr/local/bin pack"), "chmod +x /usr/local/bin/pack",
351099
351095
  // replace private git ssh gem sources with https to make bundler with credentials via env var work
351100
- "sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock", "pack build \"$DOCKER_IMAGE:$DOCKER_IMAGE_TAG\" --builder '".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image, "' --publish --cache-image \"$DOCKER_CACHE_IMAGE\" ").concat(packEnvArgs.join(" "), " ").concat((_f = (_e = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _e === void 0 ? void 0 : _e.join(" ")) !== null && _f !== void 0 ? _f : "")]
351096
+ "sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock", "pack build \"$DOCKER_IMAGE:$DOCKER_IMAGE_TAG\" --builder '".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image, "' --publish --cache-image \"$DOCKER_CACHE_IMAGE\" ").concat(packEnvArgs, " ").concat((_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : "")]
351101
351097
  })];
351102
351098
  };
351103
351099
  exports.createRailsBuildJobs = createRailsBuildJobs;
@@ -351444,7 +351440,7 @@ exports.readConfigSync = readConfigSync;
351444
351440
 
351445
351441
  exports.__esModule = true;
351446
351442
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
351447
- exports.PIPELINE_IMAGE_TAG = "main-d184a023" || 0;
351443
+ exports.PIPELINE_IMAGE_TAG = "main-a38769c0" || 0;
351448
351444
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
351449
351445
 
351450
351446
  /***/ }),
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-d184a023",
27
+ "@catladder/pipeline": "0.0.0-main-a38769c0",
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-d184a023",
60
+ "version": "0.0.0-main-a38769c0",
61
61
  "stableVersion": "0.0.0"
62
62
  }