@catladder/cli 0.0.0-main-d184a023 → 0.0.0-main-89ce8109
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
|
|
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
|
-
|
|
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
|
|
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;
|
|
@@ -39889,9 +39885,8 @@ var createRailsTestJobs = function (context) {
|
|
|
39889
39885
|
var bundlerCache = {
|
|
39890
39886
|
key: {
|
|
39891
39887
|
files: ["Gemfile.lock"],
|
|
39892
|
-
prefix: "$CI_JOB_IMAGE"
|
|
39888
|
+
prefix: "$CI_JOB_IMAGE"
|
|
39893
39889
|
},
|
|
39894
|
-
|
|
39895
39890
|
paths: [bundlerCacheDir]
|
|
39896
39891
|
};
|
|
39897
39892
|
var auditJob = buildConfig.audit !== false ? __assign(__assign({
|
|
@@ -40112,7 +40107,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
40112
40107
|
|
|
40113
40108
|
exports.__esModule = true;
|
|
40114
40109
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
40115
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
40110
|
+
exports.PIPELINE_IMAGE_TAG = "main-89ce8109" || 0;
|
|
40116
40111
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
40117
40112
|
|
|
40118
40113
|
/***/ }),
|
|
@@ -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
|
|
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
|
-
|
|
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
|
|
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;
|
|
@@ -351221,9 +351217,8 @@ var createRailsTestJobs = function (context) {
|
|
|
351221
351217
|
var bundlerCache = {
|
|
351222
351218
|
key: {
|
|
351223
351219
|
files: ["Gemfile.lock"],
|
|
351224
|
-
prefix: "$CI_JOB_IMAGE"
|
|
351220
|
+
prefix: "$CI_JOB_IMAGE"
|
|
351225
351221
|
},
|
|
351226
|
-
|
|
351227
351222
|
paths: [bundlerCacheDir]
|
|
351228
351223
|
};
|
|
351229
351224
|
var auditJob = buildConfig.audit !== false ? __assign(__assign({
|
|
@@ -351444,7 +351439,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
351444
351439
|
|
|
351445
351440
|
exports.__esModule = true;
|
|
351446
351441
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
351447
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
351442
|
+
exports.PIPELINE_IMAGE_TAG = "main-89ce8109" || 0;
|
|
351448
351443
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
351449
351444
|
|
|
351450
351445
|
/***/ }),
|
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-
|
|
27
|
+
"@catladder/pipeline": "0.0.0-main-89ce8109",
|
|
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-
|
|
60
|
+
"version": "0.0.0-main-89ce8109",
|
|
61
61
|
"stableVersion": "0.0.0"
|
|
62
62
|
}
|