@catladder/cli 0.0.0-next-e2e4f00a → 0.0.0-next-c0c5f6da
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.
- package/dist/bundles/catenv/index.js +55 -159
- package/dist/bundles/cli/index.js +55 -159
- package/dist/pipeline/src/build/base/createAppBuildJob.js +2 -3
- package/dist/pipeline/src/build/base/createAppBuildJob.js.map +1 -1
- package/dist/pipeline/src/build/custom/testJob.js +10 -11
- package/dist/pipeline/src/build/custom/testJob.js.map +1 -1
- package/dist/pipeline/src/build/node/buildJob.js +1 -1
- package/dist/pipeline/src/build/node/buildJob.js.map +1 -1
- package/dist/pipeline/src/build/node/cache.d.ts +1 -3
- package/dist/pipeline/src/build/node/cache.js +1 -27
- package/dist/pipeline/src/build/node/cache.js.map +1 -1
- package/dist/pipeline/src/build/node/testJob.js +10 -11
- package/dist/pipeline/src/build/node/testJob.js.map +1 -1
- package/dist/pipeline/src/build/rails/build.js +0 -1
- package/dist/pipeline/src/build/rails/build.js.map +1 -1
- package/dist/pipeline/src/build/rails/test.js +7 -8
- package/dist/pipeline/src/build/rails/test.js.map +1 -1
- package/dist/pipeline/src/build/types.d.ts +0 -10
- package/dist/pipeline/src/build/types.js.map +1 -1
- package/dist/pipeline/src/context/createComponentContext.js +0 -1
- package/dist/pipeline/src/context/createComponentContext.js.map +1 -1
- package/dist/pipeline/src/context/getEnvironment.js +0 -1
- package/dist/pipeline/src/context/getEnvironment.js.map +1 -1
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +2 -5
- package/dist/pipeline/src/context/getEnvironmentVariables.js +9 -19
- package/dist/pipeline/src/context/getEnvironmentVariables.js.map +1 -1
- package/dist/pipeline/src/context/resolveReferences.d.ts +0 -3
- package/dist/pipeline/src/context/resolveReferences.js +1 -10
- package/dist/pipeline/src/context/resolveReferences.js.map +1 -1
- package/dist/pipeline/src/deploy/base/deploy.js +3 -4
- package/dist/pipeline/src/deploy/base/deploy.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/index.js +2 -2
- package/dist/pipeline/src/deploy/cloudRun/index.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +3 -15
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js +0 -2
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/index.js +2 -2
- package/dist/pipeline/src/deploy/kubernetes/index.js.map +1 -1
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +1 -2
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +2 -3
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js.map +1 -1
- package/dist/pipeline/src/deploy/types/base.d.ts +0 -6
- package/dist/pipeline/src/deploy/types/kubernetes.d.ts +1 -34
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js +2 -4
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js.map +1 -1
- package/dist/pipeline/src/types/config.d.ts +0 -8
- package/dist/pipeline/src/types/context.d.ts +0 -8
- package/dist/pipeline/src/types/context.js.map +1 -1
- package/dist/pipeline/src/types/jobs.d.ts +0 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/pipeline/src/deploy/kubernetes/processSecretsAsFiles.d.ts +0 -85
- package/dist/pipeline/src/deploy/kubernetes/processSecretsAsFiles.js +0 -27
- package/dist/pipeline/src/deploy/kubernetes/processSecretsAsFiles.js.map +0 -1
|
@@ -4231,7 +4231,7 @@ const constants_1 = __nccwpck_require__(82786);
|
|
|
4231
4231
|
const writeBuildInfo_1 = __nccwpck_require__(99578);
|
|
4232
4232
|
const writeDotEnv_1 = __nccwpck_require__(48052);
|
|
4233
4233
|
const createAppBuildJob = (context, { script, variables, runnerVariables, cache, ...def }) => {
|
|
4234
|
-
var _a
|
|
4234
|
+
var _a;
|
|
4235
4235
|
return (0, lodash_1.merge)({
|
|
4236
4236
|
name: constants_1.APP_BUILD_JOB_NAME,
|
|
4237
4237
|
envMode: "jobPerEnv",
|
|
@@ -4245,14 +4245,13 @@ const createAppBuildJob = (context, { script, variables, runnerVariables, cache,
|
|
|
4245
4245
|
? {
|
|
4246
4246
|
...context.environment.envVars,
|
|
4247
4247
|
...context.environment.jobOnlyVars.build.envVars,
|
|
4248
|
-
...((_a = context.build.config.extraVars) !== null && _a !== void 0 ? _a : {}),
|
|
4249
4248
|
}
|
|
4250
4249
|
: {}),
|
|
4251
4250
|
},
|
|
4252
4251
|
runnerVariables: {
|
|
4253
4252
|
...constants_1.RUNNER_BUILD_RESOURCE_VARIABLES,
|
|
4254
4253
|
...(runnerVariables !== null && runnerVariables !== void 0 ? runnerVariables : {}),
|
|
4255
|
-
...((
|
|
4254
|
+
...((_a = context.build.config.runnerVariables) !== null && _a !== void 0 ? _a : {}),
|
|
4256
4255
|
},
|
|
4257
4256
|
script: [
|
|
4258
4257
|
...(context.type === "component"
|
|
@@ -4652,7 +4651,7 @@ const RUNNER_CUSTOM_TEST_VARIABLES = {
|
|
|
4652
4651
|
KUBERNETES_MEMORY_LIMIT: "4Gi",
|
|
4653
4652
|
};
|
|
4654
4653
|
const createCustomTestJobs = (context) => {
|
|
4655
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
4654
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
4656
4655
|
// don't run tests after release
|
|
4657
4656
|
// TODO: this will be replaced by using rules
|
|
4658
4657
|
if (context.trigger === "taggedRelease") {
|
|
@@ -4666,7 +4665,6 @@ const createCustomTestJobs = (context) => {
|
|
|
4666
4665
|
variables: {
|
|
4667
4666
|
APP_PATH: context.build.dir,
|
|
4668
4667
|
...context.environment.jobOnlyVars.build.envVars,
|
|
4669
|
-
...((_a = buildConfig.extraVars) !== null && _a !== void 0 ? _a : {}),
|
|
4670
4668
|
},
|
|
4671
4669
|
runnerVariables: RUNNER_CUSTOM_TEST_VARIABLES,
|
|
4672
4670
|
services: buildConfig.jobServices,
|
|
@@ -4679,29 +4677,29 @@ const createCustomTestJobs = (context) => {
|
|
|
4679
4677
|
? {
|
|
4680
4678
|
name: "🛡 audit",
|
|
4681
4679
|
...base,
|
|
4682
|
-
image: (
|
|
4680
|
+
image: (_b = (_a = buildConfig.audit) === null || _a === void 0 ? void 0 : _a.jobImage) !== null && _b !== void 0 ? _b : buildConfig.jobImage,
|
|
4683
4681
|
cache: undefined,
|
|
4684
|
-
script: [...(0, utils_1.ensureArray)((
|
|
4682
|
+
script: [...(0, utils_1.ensureArray)((_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.command)],
|
|
4685
4683
|
allow_failure: true,
|
|
4686
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
4684
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_d = buildConfig.audit) === null || _d === void 0 ? void 0 : _d.artifactsReports, (_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.artifacts),
|
|
4687
4685
|
}
|
|
4688
4686
|
: null;
|
|
4689
4687
|
const lintJob = buildConfig.lint
|
|
4690
4688
|
? {
|
|
4691
4689
|
name: "👮 lint",
|
|
4692
4690
|
...base,
|
|
4693
|
-
image: (
|
|
4694
|
-
script: [...(0, utils_1.ensureArray)((
|
|
4695
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
4691
|
+
image: (_g = (_f = buildConfig.lint) === null || _f === void 0 ? void 0 : _f.jobImage) !== null && _g !== void 0 ? _g : buildConfig.jobImage,
|
|
4692
|
+
script: [...(0, utils_1.ensureArray)((_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.command)],
|
|
4693
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.artifactsReports, (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.artifacts),
|
|
4696
4694
|
}
|
|
4697
4695
|
: null;
|
|
4698
4696
|
const testJob = buildConfig.test
|
|
4699
4697
|
? {
|
|
4700
4698
|
name: "🧪 test",
|
|
4701
4699
|
...base,
|
|
4702
|
-
image: (
|
|
4703
|
-
script: [...(0, utils_1.ensureArray)((
|
|
4704
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
4700
|
+
image: (_m = (_l = buildConfig.test) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : buildConfig.jobImage,
|
|
4701
|
+
script: [...(0, utils_1.ensureArray)((_o = buildConfig.test) === null || _o === void 0 ? void 0 : _o.command)],
|
|
4702
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.artifactsReports, (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.artifacts),
|
|
4705
4703
|
}
|
|
4706
4704
|
: null;
|
|
4707
4705
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
@@ -5003,7 +5001,7 @@ const createNodeBuildJobDefinition = (context) => {
|
|
|
5003
5001
|
const yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
5004
5002
|
return (0, createBuildJobDefinition_1.createBuildJobDefinition)(context, buildConfig, {
|
|
5005
5003
|
prescript: yarnInstall,
|
|
5006
|
-
cache:
|
|
5004
|
+
cache: (0, cache_1.getNodeCache)(context),
|
|
5007
5005
|
});
|
|
5008
5006
|
};
|
|
5009
5007
|
exports.createNodeBuildJobDefinition = createNodeBuildJobDefinition;
|
|
@@ -5038,7 +5036,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5038
5036
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5039
5037
|
};
|
|
5040
5038
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5041
|
-
exports.
|
|
5039
|
+
exports.getNodeCache = exports.getNodeModulesCache = exports.getYarnCache = void 0;
|
|
5042
5040
|
const lodash_1 = __nccwpck_require__(23255);
|
|
5043
5041
|
const path_1 = __nccwpck_require__(71017);
|
|
5044
5042
|
const slugify_1 = __importDefault(__nccwpck_require__(44035));
|
|
@@ -5087,35 +5085,9 @@ const getNodeCache = (context, policy = "pull-push") => {
|
|
|
5087
5085
|
return [
|
|
5088
5086
|
...(0, exports.getYarnCache)(context, policy),
|
|
5089
5087
|
...(0, exports.getNodeModulesCache)(context, policy),
|
|
5090
|
-
...(context.type === "workspace" ? (0, exports.getWorkspaceDefaultCaches)(context) : []),
|
|
5091
5088
|
];
|
|
5092
5089
|
};
|
|
5093
5090
|
exports.getNodeCache = getNodeCache;
|
|
5094
|
-
const getNextCache = (context) => {
|
|
5095
|
-
const paths = context.build
|
|
5096
|
-
.getComponentDirs("direct")
|
|
5097
|
-
.map((c) => (0, path_1.join)(c, ".next/cache"));
|
|
5098
|
-
return [
|
|
5099
|
-
{
|
|
5100
|
-
pathMode: "absolute",
|
|
5101
|
-
key: "next-cache",
|
|
5102
|
-
policy: "pull-push",
|
|
5103
|
-
paths,
|
|
5104
|
-
},
|
|
5105
|
-
];
|
|
5106
|
-
};
|
|
5107
|
-
exports.getNextCache = getNextCache;
|
|
5108
|
-
const getWorkspaceDefaultCaches = (context) => {
|
|
5109
|
-
return [
|
|
5110
|
-
{
|
|
5111
|
-
// turbo repo
|
|
5112
|
-
key: "turbo",
|
|
5113
|
-
policy: "pull-push",
|
|
5114
|
-
paths: [".turbo"],
|
|
5115
|
-
},
|
|
5116
|
-
];
|
|
5117
|
-
};
|
|
5118
|
-
exports.getWorkspaceDefaultCaches = getWorkspaceDefaultCaches;
|
|
5119
5091
|
//# sourceMappingURL=cache.js.map
|
|
5120
5092
|
|
|
5121
5093
|
/***/ }),
|
|
@@ -5240,7 +5212,7 @@ const constants_1 = __nccwpck_require__(31765);
|
|
|
5240
5212
|
const yarn_1 = __nccwpck_require__(45043);
|
|
5241
5213
|
const createJobCache_1 = __nccwpck_require__(10340);
|
|
5242
5214
|
const createNodeTestJobs = (context) => {
|
|
5243
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t
|
|
5215
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
5244
5216
|
// don't run tests after release
|
|
5245
5217
|
// TODO: this will be replaced by using rules
|
|
5246
5218
|
if (context.trigger === "taggedRelease") {
|
|
@@ -5258,7 +5230,6 @@ const createNodeTestJobs = (context) => {
|
|
|
5258
5230
|
...(context.type === "component"
|
|
5259
5231
|
? {
|
|
5260
5232
|
...context.environment.jobOnlyVars.build.envVars,
|
|
5261
|
-
...((_a = context.build.config.extraVars) !== null && _a !== void 0 ? _a : {}),
|
|
5262
5233
|
}
|
|
5263
5234
|
: {}),
|
|
5264
5235
|
},
|
|
@@ -5273,48 +5244,48 @@ const createNodeTestJobs = (context) => {
|
|
|
5273
5244
|
? {
|
|
5274
5245
|
name: "🛡 audit",
|
|
5275
5246
|
...base,
|
|
5276
|
-
image: (
|
|
5247
|
+
image: (_b = (_a = buildConfig.audit) === null || _a === void 0 ? void 0 : _a.jobImage) !== null && _b !== void 0 ? _b : defaultImage,
|
|
5277
5248
|
cache: undefined, // audit does not need yarn install and no cache
|
|
5278
5249
|
script: [
|
|
5279
5250
|
`cd ${context.build.dir}`,
|
|
5280
|
-
...((
|
|
5251
|
+
...((_d = (0, utils_1.ensureArrayOrNull)((_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.command)) !== null && _d !== void 0 ? _d : [
|
|
5281
5252
|
context.packageManagerInfo.isClassic
|
|
5282
5253
|
? "yarn audit"
|
|
5283
5254
|
: "yarn npm audit --environment production", // yarn 2
|
|
5284
5255
|
]),
|
|
5285
5256
|
],
|
|
5286
5257
|
allow_failure: true,
|
|
5287
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
5258
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.artifactsReports, (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.artifacts),
|
|
5288
5259
|
}
|
|
5289
5260
|
: null;
|
|
5290
5261
|
const lintJob = buildConfig.lint !== false
|
|
5291
5262
|
? {
|
|
5292
5263
|
name: "👮 lint",
|
|
5293
5264
|
...base,
|
|
5294
|
-
image: (
|
|
5265
|
+
image: (_h = (_g = buildConfig.lint) === null || _g === void 0 ? void 0 : _g.jobImage) !== null && _h !== void 0 ? _h : defaultImage,
|
|
5295
5266
|
cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
|
|
5296
5267
|
script: [
|
|
5297
5268
|
...(0, yarn_1.ensureNodeVersion)(context),
|
|
5298
5269
|
`cd ${context.build.dir}`,
|
|
5299
5270
|
...yarnInstall,
|
|
5300
|
-
...((
|
|
5271
|
+
...((_k = (0, utils_1.ensureArrayOrNull)((_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.command)) !== null && _k !== void 0 ? _k : ["yarn lint"]),
|
|
5301
5272
|
],
|
|
5302
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
5273
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.artifactsReports, (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.artifacts),
|
|
5303
5274
|
}
|
|
5304
5275
|
: null;
|
|
5305
5276
|
const testJob = buildConfig.test !== false
|
|
5306
5277
|
? {
|
|
5307
5278
|
name: "🧪 test",
|
|
5308
5279
|
...base,
|
|
5309
|
-
image: (
|
|
5280
|
+
image: (_p = (_o = buildConfig.test) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
|
|
5310
5281
|
cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
|
|
5311
5282
|
script: [
|
|
5312
5283
|
...(0, yarn_1.ensureNodeVersion)(context),
|
|
5313
5284
|
`cd ${context.build.dir}`,
|
|
5314
5285
|
...yarnInstall,
|
|
5315
|
-
...((
|
|
5286
|
+
...((_r = (0, utils_1.ensureArrayOrNull)((_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : ["yarn test"]),
|
|
5316
5287
|
],
|
|
5317
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
5288
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.artifactsReports, (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.artifacts),
|
|
5318
5289
|
}
|
|
5319
5290
|
: null;
|
|
5320
5291
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
@@ -5430,7 +5401,6 @@ const createRailsBuildJobs = (context) => {
|
|
|
5430
5401
|
dockerBuild: {
|
|
5431
5402
|
variables: {
|
|
5432
5403
|
...context.environment.jobOnlyVars.build.envVars,
|
|
5433
|
-
...context.build.config.extraVars,
|
|
5434
5404
|
},
|
|
5435
5405
|
// custom script
|
|
5436
5406
|
script: [
|
|
@@ -5478,7 +5448,7 @@ exports.createRailsTestJobs = void 0;
|
|
|
5478
5448
|
const __1 = __nccwpck_require__(10603);
|
|
5479
5449
|
const utils_1 = __nccwpck_require__(32497);
|
|
5480
5450
|
const createRailsTestJobs = (context) => {
|
|
5481
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
5451
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
5482
5452
|
// don't run tests after release
|
|
5483
5453
|
// TODO: this will be replaced by using rules
|
|
5484
5454
|
if (context.trigger === "taggedRelease") {
|
|
@@ -5492,7 +5462,6 @@ const createRailsTestJobs = (context) => {
|
|
|
5492
5462
|
const base = {
|
|
5493
5463
|
variables: {
|
|
5494
5464
|
...context.environment.jobOnlyVars.build.envVars,
|
|
5495
|
-
...((_a = buildConfig.extraVars) !== null && _a !== void 0 ? _a : {}),
|
|
5496
5465
|
},
|
|
5497
5466
|
stage: "test",
|
|
5498
5467
|
needs: [],
|
|
@@ -5516,10 +5485,10 @@ const createRailsTestJobs = (context) => {
|
|
|
5516
5485
|
name: "🛡 audit",
|
|
5517
5486
|
...base,
|
|
5518
5487
|
cache: undefined, // audit does not need bundle install and no cache
|
|
5519
|
-
image: (
|
|
5488
|
+
image: (_c = (_b = (_a = buildConfig.audit) === null || _a === void 0 ? void 0 : _a.jobImage) !== null && _b !== void 0 ? _b : buildConfig.jobImage) !== null && _c !== void 0 ? _c : defaultImage,
|
|
5520
5489
|
script: [
|
|
5521
5490
|
`cd ${context.build.dir}`,
|
|
5522
|
-
...((
|
|
5491
|
+
...((_e = (0, utils_1.ensureArrayOrNull)((_d = buildConfig.audit) === null || _d === void 0 ? void 0 : _d.command)) !== null && _e !== void 0 ? _e : [
|
|
5523
5492
|
"gem install bundler-audit",
|
|
5524
5493
|
"bundle audit check",
|
|
5525
5494
|
]),
|
|
@@ -5532,11 +5501,11 @@ const createRailsTestJobs = (context) => {
|
|
|
5532
5501
|
name: "👮 lint",
|
|
5533
5502
|
...base,
|
|
5534
5503
|
cache: bundlerCache,
|
|
5535
|
-
image: (
|
|
5504
|
+
image: (_h = (_g = (_f = buildConfig.lint) === null || _f === void 0 ? void 0 : _f.jobImage) !== null && _g !== void 0 ? _g : buildConfig.jobImage) !== null && _h !== void 0 ? _h : defaultImage,
|
|
5536
5505
|
script: [
|
|
5537
5506
|
`cd ${context.build.dir}`,
|
|
5538
5507
|
...bundlerInstall,
|
|
5539
|
-
...((
|
|
5508
|
+
...((_k = (0, utils_1.ensureArrayOrNull)((_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.command)) !== null && _k !== void 0 ? _k : [
|
|
5540
5509
|
"bundle exec rubocop",
|
|
5541
5510
|
]),
|
|
5542
5511
|
],
|
|
@@ -5547,11 +5516,11 @@ const createRailsTestJobs = (context) => {
|
|
|
5547
5516
|
name: "🧪 test",
|
|
5548
5517
|
...base,
|
|
5549
5518
|
cache: bundlerCache,
|
|
5550
|
-
image: (
|
|
5519
|
+
image: (_o = (_m = (_l = buildConfig.test) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : buildConfig.jobImage) !== null && _o !== void 0 ? _o : defaultImage,
|
|
5551
5520
|
script: [
|
|
5552
5521
|
`cd ${context.build.dir}`,
|
|
5553
5522
|
...bundlerInstall,
|
|
5554
|
-
...((
|
|
5523
|
+
...((_q = (0, utils_1.ensureArrayOrNull)((_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.command)) !== null && _q !== void 0 ? _q : [
|
|
5555
5524
|
"bundle exec rspec",
|
|
5556
5525
|
]),
|
|
5557
5526
|
],
|
|
@@ -5868,7 +5837,6 @@ const createComponentContext = async (ctx) => {
|
|
|
5868
5837
|
const context = {
|
|
5869
5838
|
type: "component",
|
|
5870
5839
|
name: ctx.componentName,
|
|
5871
|
-
componentName: ctx.componentName,
|
|
5872
5840
|
env: ctx.env,
|
|
5873
5841
|
fullConfig: ctx.config,
|
|
5874
5842
|
componentConfig,
|
|
@@ -6041,7 +6009,6 @@ const getEnvironment = async (ctx) => {
|
|
|
6041
6009
|
slugPrefix: envContext.environmentSlugPrefix,
|
|
6042
6010
|
reviewSlug: envContext.reviewSlug,
|
|
6043
6011
|
slug: envContext.environmentSlug,
|
|
6044
|
-
shortName: env,
|
|
6045
6012
|
...variables,
|
|
6046
6013
|
};
|
|
6047
6014
|
};
|
|
@@ -6101,7 +6068,6 @@ exports.getEnvironmentContext = getEnvironmentContext;
|
|
|
6101
6068
|
|
|
6102
6069
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6103
6070
|
exports.getSecretVarNameForContext = exports.getSecretVarName = exports.getEnvironmentVariables = void 0;
|
|
6104
|
-
const lodash_1 = __nccwpck_require__(23255);
|
|
6105
6071
|
const deploy_1 = __nccwpck_require__(68483);
|
|
6106
6072
|
const BashExpression_1 = __nccwpck_require__(42376);
|
|
6107
6073
|
const types_1 = __nccwpck_require__(84466);
|
|
@@ -6119,7 +6085,7 @@ const getBasePredefinedVariables = (ctx) => {
|
|
|
6119
6085
|
};
|
|
6120
6086
|
};
|
|
6121
6087
|
const getEnvironmentVariables = async (ctx, alreadyVisited = {}) => {
|
|
6122
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
6088
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6123
6089
|
const environmentContext = (0, getEnvironmentContext_1.getEnvironmentContext)(ctx);
|
|
6124
6090
|
const { config, env, componentName } = ctx;
|
|
6125
6091
|
const { envConfigRaw, deployConfigRaw, buildConfigRaw, envType } = environmentContext;
|
|
@@ -6136,12 +6102,8 @@ const getEnvironmentVariables = async (ctx, alreadyVisited = {}) => {
|
|
|
6136
6102
|
...basePredefinedVariables,
|
|
6137
6103
|
ENV_SHORT: "local",
|
|
6138
6104
|
ROOT_URL: url,
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
buildConfigRaw.type === "rails"
|
|
6142
|
-
? {}
|
|
6143
|
-
: { HOST: host }),
|
|
6144
|
-
HOST_INTERNAL: host,
|
|
6105
|
+
HOSTNAME: host,
|
|
6106
|
+
HOSTNAME_INTERNAL: host,
|
|
6145
6107
|
ROOT_URL_INTERNAL: "http://" + host,
|
|
6146
6108
|
PORT: port.toString(),
|
|
6147
6109
|
};
|
|
@@ -6150,8 +6112,8 @@ const getEnvironmentVariables = async (ctx, alreadyVisited = {}) => {
|
|
|
6150
6112
|
const additionalEnvVars = deployConfigRaw
|
|
6151
6113
|
? deploy_1.DEPLOY_TYPES[deployConfigRaw.type].getAdditionalEnvVars(environmentContext)
|
|
6152
6114
|
: {};
|
|
6153
|
-
const
|
|
6154
|
-
host = (_c = envConfigRaw === null || envConfigRaw === void 0 ? void 0 : envConfigRaw.host) !== null && _c !== void 0 ? _c :
|
|
6115
|
+
const HOSTNAME_INTERNAL = (_b = additionalEnvVars.HOSTNAME_INTERNAL) !== null && _b !== void 0 ? _b : "unknown-host.example.com";
|
|
6116
|
+
host = (_c = envConfigRaw === null || envConfigRaw === void 0 ? void 0 : envConfigRaw.host) !== null && _c !== void 0 ? _c : HOSTNAME_INTERNAL;
|
|
6155
6117
|
url = (0, BashExpression_1.joinBashExpressions)(["https://", host]);
|
|
6156
6118
|
predefinedVariables = {
|
|
6157
6119
|
...basePredefinedVariables,
|
|
@@ -6159,12 +6121,10 @@ const getEnvironmentVariables = async (ctx, alreadyVisited = {}) => {
|
|
|
6159
6121
|
...((0, types_1.isStandaloneBuildConfig)(buildConfigRaw) &&
|
|
6160
6122
|
buildConfigRaw.type === "rails"
|
|
6161
6123
|
? {}
|
|
6162
|
-
: {
|
|
6124
|
+
: { HOSTNAME: host }),
|
|
6163
6125
|
ROOT_URL: url,
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
HOST_CANONICAL: HOST_INTERNAL, // legacy alias for HOST_INTERNAL
|
|
6167
|
-
ROOT_URL_INTERNAL: (0, BashExpression_1.joinBashExpressions)(["https://", HOST_INTERNAL]),
|
|
6126
|
+
HOSTNAME_INTERNAL,
|
|
6127
|
+
ROOT_URL_INTERNAL: (0, BashExpression_1.joinBashExpressions)(["https://", HOSTNAME_INTERNAL]),
|
|
6168
6128
|
...additionalEnvVars,
|
|
6169
6129
|
};
|
|
6170
6130
|
}
|
|
@@ -6177,10 +6137,7 @@ const getEnvironmentVariables = async (ctx, alreadyVisited = {}) => {
|
|
|
6177
6137
|
...additionalSecretKeys,
|
|
6178
6138
|
];
|
|
6179
6139
|
const secretEnvVars = (0, envVars_1.makeSecretEnvVarMapping)(env, componentName, secretEnvVarKeys);
|
|
6180
|
-
|
|
6181
|
-
const legacyFromComponents = (_j = (_h = envConfigRaw.vars) === null || _h === void 0 ? void 0 : _h.fromComponents) !== null && _j !== void 0 ? _j : {};
|
|
6182
|
-
const publicEnvVarsRawWithLegacyFromComponents = (0, lodash_1.merge)({}, (0, resolveReferences_1.translateLegacyFromComponents)(legacyFromComponents), publicEnvVarsRaw);
|
|
6183
|
-
const publicEnvVarsRawSanitized = (0, envVars_1.stringifyValues)(publicEnvVarsRawWithLegacyFromComponents);
|
|
6140
|
+
const publicEnvVarsRawSanitized = (0, envVars_1.stringifyValues)(publicEnvVarsRaw);
|
|
6184
6141
|
const envVarsRaw = addIndexVar({
|
|
6185
6142
|
...predefinedVariables,
|
|
6186
6143
|
...secretEnvVars,
|
|
@@ -6319,7 +6276,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6319
6276
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6320
6277
|
};
|
|
6321
6278
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6322
|
-
exports.
|
|
6279
|
+
exports.resolveReferences = void 0;
|
|
6323
6280
|
const lodash_1 = __nccwpck_require__(23255);
|
|
6324
6281
|
const replaceAsync_1 = __importDefault(__nccwpck_require__(72233));
|
|
6325
6282
|
// regex to resolve references in catladder variables
|
|
@@ -6369,15 +6326,6 @@ const resolveReferences = async (vars, getOtherVariables, alreadyVisitedBase = {
|
|
|
6369
6326
|
})));
|
|
6370
6327
|
};
|
|
6371
6328
|
exports.resolveReferences = resolveReferences;
|
|
6372
|
-
const translateLegacyFromComponents = (fromComponents) => {
|
|
6373
|
-
return Object.fromEntries(Object.entries(fromComponents).flatMap(([componentName, variables]) => {
|
|
6374
|
-
return Object.entries(variables).map(([ourName, otherName]) => [
|
|
6375
|
-
ourName,
|
|
6376
|
-
"${" + componentName + ":" + otherName + "}",
|
|
6377
|
-
]);
|
|
6378
|
-
}));
|
|
6379
|
-
};
|
|
6380
|
-
exports.translateLegacyFromComponents = translateLegacyFromComponents;
|
|
6381
6329
|
//# sourceMappingURL=resolveReferences.js.map
|
|
6382
6330
|
|
|
6383
6331
|
/***/ }),
|
|
@@ -6483,7 +6431,7 @@ const stop_1 = __nccwpck_require__(82846);
|
|
|
6483
6431
|
const variables_1 = __nccwpck_require__(82422);
|
|
6484
6432
|
exports.DEPLOY_JOB_NAME = "🚀 Deploy";
|
|
6485
6433
|
const createDeployJob = (context, jobDefinition) => {
|
|
6486
|
-
var _a, _b, _c, _d, _e, _f
|
|
6434
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6487
6435
|
const hasDocker = (0, docker_1.requiresDockerBuild)(context);
|
|
6488
6436
|
const isStoppable = (0, utils_1.contextIsStoppable)(context);
|
|
6489
6437
|
const autoStop = context.environment.envType === "review"
|
|
@@ -6562,13 +6510,12 @@ const createDeployJob = (context, jobDefinition) => {
|
|
|
6562
6510
|
...context.environment.envVars,
|
|
6563
6511
|
...(hasDocker ? (0, docker_1.getDockerImageVariables)(context) : {}),
|
|
6564
6512
|
...context.environment.jobOnlyVars.deploy.envVars,
|
|
6565
|
-
...(deployConfig ? (_e = deployConfig.extraVars) !== null && _e !== void 0 ? _e : {} : {}),
|
|
6566
6513
|
...jobDefinition.variables,
|
|
6567
6514
|
},
|
|
6568
6515
|
runnerVariables: {
|
|
6569
6516
|
...variables_1.DEPLOY_RUNNER_VARIABLES,
|
|
6570
|
-
...((
|
|
6571
|
-
...(deployConfig ? (
|
|
6517
|
+
...((_e = jobDefinition.runnerVariables) !== null && _e !== void 0 ? _e : {}),
|
|
6518
|
+
...(deployConfig ? (_f = deployConfig.runnerVariables) !== null && _f !== void 0 ? _f : {} : {}),
|
|
6572
6519
|
},
|
|
6573
6520
|
environment: isStoppable
|
|
6574
6521
|
? {
|
|
@@ -7417,7 +7364,7 @@ exports.GCLOUD_RUN_DEPLOY_TYPE = {
|
|
|
7417
7364
|
],
|
|
7418
7365
|
getAdditionalEnvVars: (ctx) => {
|
|
7419
7366
|
const { fullName, env, componentName, deployConfigRaw } = ctx;
|
|
7420
|
-
const
|
|
7367
|
+
const HOSTNAME_INTERNAL = (0, BashExpression_1.joinBashExpressions)([
|
|
7421
7368
|
fullName,
|
|
7422
7369
|
(0, BashExpression_1.getBashVariable)((0, context_1.getSecretVarName)(env, componentName, exports.GCLOUD_RUN_CANONICAL_HOST_SUFFIX)),
|
|
7423
7370
|
], "-").toLowerCase();
|
|
@@ -7428,7 +7375,7 @@ exports.GCLOUD_RUN_DEPLOY_TYPE = {
|
|
|
7428
7375
|
]))
|
|
7429
7376
|
: {};
|
|
7430
7377
|
return {
|
|
7431
|
-
|
|
7378
|
+
HOSTNAME_INTERNAL,
|
|
7432
7379
|
...getCloudSqlVariables(ctx),
|
|
7433
7380
|
...jobTriggers,
|
|
7434
7381
|
DEPLOY_CLOUD_RUN_PROJECT_ID: deployConfigRaw
|
|
@@ -7840,7 +7787,7 @@ const hasKubernetesCloudSQL = (context) => {
|
|
|
7840
7787
|
};
|
|
7841
7788
|
exports.hasKubernetesCloudSQL = hasKubernetesCloudSQL;
|
|
7842
7789
|
const createKubernetesCloudsqlBaseValues = (context) => {
|
|
7843
|
-
var _a, _b, _c
|
|
7790
|
+
var _a, _b, _c;
|
|
7844
7791
|
const deployConfig = (_a = context.deploy) === null || _a === void 0 ? void 0 : _a.config;
|
|
7845
7792
|
if (!(0, types_1.isOfDeployType)(deployConfig, "kubernetes")) {
|
|
7846
7793
|
throw new Error("cannot get cloud sql config");
|
|
@@ -7850,23 +7797,11 @@ const createKubernetesCloudsqlBaseValues = (context) => {
|
|
|
7850
7797
|
throw new Error("cannot get cloud sql config");
|
|
7851
7798
|
}
|
|
7852
7799
|
const proxyCredentials = `$${(0, context_1.getSecretVarNameForContext)(context, "cloudsqlProxyCredentials")}`;
|
|
7853
|
-
if (
|
|
7854
|
-
const instanceConnectionName = `${(_c = config.projectId) !== null && _c !== void 0 ? _c : "skynet-164509"}:${(_d = config.region) !== null && _d !== void 0 ? _d : "europe-west6"}:${(_e = config.instanceId) !== null && _e !== void 0 ? _e : context.environment.envVars.KUBE_NAMESPACE}`;
|
|
7855
|
-
return {
|
|
7856
|
-
cloudsql: {
|
|
7857
|
-
enabled: config.enabled,
|
|
7858
|
-
dbUser: "postgres",
|
|
7859
|
-
instanceConnectionName,
|
|
7860
|
-
proxyCredentials,
|
|
7861
|
-
fullDbName: (_f = context.environment.envVars.KUBE_APP_NAME) !== null && _f !== void 0 ? _f : "",
|
|
7862
|
-
},
|
|
7863
|
-
};
|
|
7864
|
-
}
|
|
7865
|
-
else if (config.type === "unmanaged") {
|
|
7800
|
+
if (config.type === "unmanaged") {
|
|
7866
7801
|
return {
|
|
7867
7802
|
cloudsql: {
|
|
7868
7803
|
enabled: config.enabled,
|
|
7869
|
-
dbUser: (
|
|
7804
|
+
dbUser: (_c = config.dbUser) !== null && _c !== void 0 ? _c : "postgres",
|
|
7870
7805
|
instanceConnectionName: config.instanceConnectionName,
|
|
7871
7806
|
proxyCredentials,
|
|
7872
7807
|
fullDbName: (0, utils_1.getFullDbName)(config, context.fullConfig, context.environment.slugPrefix, context.name),
|
|
@@ -7928,8 +7863,6 @@ const createKubernetesDeployJobs = (context) => {
|
|
|
7928
7863
|
...((_c = deployConfig.additionalHelmArgs) !== null && _c !== void 0 ? _c : []),
|
|
7929
7864
|
].join(" "),
|
|
7930
7865
|
COMPONENT_NAME: context.name,
|
|
7931
|
-
/** @deprecated */
|
|
7932
|
-
BUILD_ID: context.environment.envVars.BUILD_INFO_BUILD_ID,
|
|
7933
7866
|
},
|
|
7934
7867
|
};
|
|
7935
7868
|
const clusterName = `kube-${context.environment.fullName}`;
|
|
@@ -8013,7 +7946,7 @@ exports.KUBERNETES_DEPLOY_TYPE = {
|
|
|
8013
7946
|
const domainCanonical = (deployConfigRaw && ((_a = deployConfigRaw.cluster) === null || _a === void 0 ? void 0 : _a.domainCanonical)) || // for convenience, we allow clusters to define a canonical domain, because a cluster has a fixed ip and you will usually have a domain pointing to that cluster
|
|
8014
7947
|
fullConfig.domainCanonical ||
|
|
8015
7948
|
"panter.cloud";
|
|
8016
|
-
const
|
|
7949
|
+
const HOSTNAME_INTERNAL = (0, BashExpression_1.joinBashExpressions)([
|
|
8017
7950
|
componentSlug,
|
|
8018
7951
|
...(envType === "review" && reviewSlug ? [reviewSlug] : []),
|
|
8019
7952
|
env,
|
|
@@ -8025,7 +7958,7 @@ exports.KUBERNETES_DEPLOY_TYPE = {
|
|
|
8025
7958
|
KUBE_NAMESPACE,
|
|
8026
7959
|
KUBE_APP_NAME,
|
|
8027
7960
|
KUBE_APP_NAME_PREFIX,
|
|
8028
|
-
|
|
7961
|
+
HOSTNAME_INTERNAL,
|
|
8029
7962
|
};
|
|
8030
7963
|
},
|
|
8031
7964
|
};
|
|
@@ -8098,7 +8031,6 @@ const types_1 = __nccwpck_require__(75781);
|
|
|
8098
8031
|
const cloudSql_1 = __nccwpck_require__(45129);
|
|
8099
8032
|
const kubeEnv_1 = __nccwpck_require__(66769);
|
|
8100
8033
|
const mongodb_1 = __nccwpck_require__(24139);
|
|
8101
|
-
const processSecretsAsFiles_1 = __nccwpck_require__(6089);
|
|
8102
8034
|
const createAppConfig = (context, application) => {
|
|
8103
8035
|
if (application === false) {
|
|
8104
8036
|
return {
|
|
@@ -8155,11 +8087,11 @@ const createKubeValues = (context) => {
|
|
|
8155
8087
|
: {}, ((_c = (_b = deployConfig.values) === null || _b === void 0 ? void 0 : _b.mongodb) === null || _c === void 0 ? void 0 : _c.enabled)
|
|
8156
8088
|
? (0, mongodb_1.createMongodbBaseConfig)(context)
|
|
8157
8089
|
: {});
|
|
8158
|
-
const kubeValues = (0,
|
|
8090
|
+
const kubeValues = (0, utils_1.mergeWithMergingArrays)(defaultKubeValues, {
|
|
8159
8091
|
jobs: removeFalsy(jobs),
|
|
8160
8092
|
cronjobs: removeFalsy(cronjobs),
|
|
8161
8093
|
...rest,
|
|
8162
|
-
})
|
|
8094
|
+
});
|
|
8163
8095
|
return kubeValues;
|
|
8164
8096
|
};
|
|
8165
8097
|
exports.createKubeValues = createKubeValues;
|
|
@@ -8278,40 +8210,6 @@ exports.createMongodbBaseConfig = createMongodbBaseConfig;
|
|
|
8278
8210
|
|
|
8279
8211
|
/***/ }),
|
|
8280
8212
|
|
|
8281
|
-
/***/ 6089:
|
|
8282
|
-
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8283
|
-
|
|
8284
|
-
"use strict";
|
|
8285
|
-
|
|
8286
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8287
|
-
exports.processSecretsAsFiles = void 0;
|
|
8288
|
-
const lodash_1 = __nccwpck_require__(23255);
|
|
8289
|
-
const processSecretsAsFiles = (values) => {
|
|
8290
|
-
if (!values.secretsAsFile || values.secretsAsFile.length === 0) {
|
|
8291
|
-
return values;
|
|
8292
|
-
}
|
|
8293
|
-
// the initial idea was that we "shadow" secrets that we mount as files,
|
|
8294
|
-
// but there is a weird kubernetes issue with that (https://github.com/kubernetes/kubernetes/issues/46861),
|
|
8295
|
-
// so instead we rename the secrets and append _content, so that inside kuberentes, we can use the original name to contain the path and name+_content as the actual content
|
|
8296
|
-
return {
|
|
8297
|
-
...values,
|
|
8298
|
-
env: {
|
|
8299
|
-
...values.env,
|
|
8300
|
-
secret: {
|
|
8301
|
-
...(0, lodash_1.omit)(values.env.secret, values.secretsAsFile),
|
|
8302
|
-
...Object.fromEntries(values.secretsAsFile.map((key) => [
|
|
8303
|
-
key + "_content",
|
|
8304
|
-
values.env.secret[key],
|
|
8305
|
-
])),
|
|
8306
|
-
},
|
|
8307
|
-
},
|
|
8308
|
-
};
|
|
8309
|
-
};
|
|
8310
|
-
exports.processSecretsAsFiles = processSecretsAsFiles;
|
|
8311
|
-
//# sourceMappingURL=processSecretsAsFiles.js.map
|
|
8312
|
-
|
|
8313
|
-
/***/ }),
|
|
8314
|
-
|
|
8315
8213
|
/***/ 44986:
|
|
8316
8214
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8317
8215
|
|
|
@@ -8888,7 +8786,7 @@ const getFullReferencedJobNameFromWorkspace = (referencedJobName, workspaceName,
|
|
|
8888
8786
|
const getJobName = (need) => (0, lodash_1.isObject)(need) ? need.job : need;
|
|
8889
8787
|
const makeGitlabJob = (context, job, allJobs, baseRules) => {
|
|
8890
8788
|
var _a, _b;
|
|
8891
|
-
const { environment, envMode, needsStages,
|
|
8789
|
+
const { environment, envMode, needsStages, name, needs, jobTags, script, variables, runnerVariables, when, ...rest } = job;
|
|
8892
8790
|
const stage = envMode === "stagePerEnv" ? `${job.stage} ${context.env}` : job.stage;
|
|
8893
8791
|
const deduplicatedGitlabNeeds = getGitlabNeeds(context, job, allJobs);
|
|
8894
8792
|
const fullJobName = getFullJobName({
|
|
@@ -9012,7 +8910,7 @@ function deduplicateNeeds(needs) {
|
|
|
9012
8910
|
? [...new Map(needs.map((n) => [(0, lodash_1.isObject)(n) ? n.job : n, n])).values()]
|
|
9013
8911
|
: undefined;
|
|
9014
8912
|
}
|
|
9015
|
-
function getGitlabNeedsForComponentJob(context, { needsStages, needs
|
|
8913
|
+
function getGitlabNeedsForComponentJob(context, { needsStages, needs }, allJobs) {
|
|
9016
8914
|
const needsFromStages = needsStages === null || needsStages === void 0 ? void 0 : needsStages.flatMap((n) => {
|
|
9017
8915
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9018
8916
|
const componentName = context.name;
|
|
@@ -9046,8 +8944,6 @@ function getGitlabNeedsForComponentJob(context, { needsStages, needs, needsOther
|
|
|
9046
8944
|
const cleanedNeeds = [
|
|
9047
8945
|
...(needsFromStages !== null && needsFromStages !== void 0 ? needsFromStages : []),
|
|
9048
8946
|
...(needs !== null && needs !== void 0 ? needs : []),
|
|
9049
|
-
// pull in legacy needs from other component, which is now identical to needs
|
|
9050
|
-
...(needsOtherComponent !== null && needsOtherComponent !== void 0 ? needsOtherComponent : []),
|
|
9051
8947
|
];
|
|
9052
8948
|
return cleanedNeeds === null || cleanedNeeds === void 0 ? void 0 : cleanedNeeds.map((n) => {
|
|
9053
8949
|
var _a;
|
|
@@ -11,7 +11,7 @@ const constants_1 = require("./constants");
|
|
|
11
11
|
const writeBuildInfo_1 = require("./writeBuildInfo");
|
|
12
12
|
const writeDotEnv_1 = require("./writeDotEnv");
|
|
13
13
|
const createAppBuildJob = (context, { script, variables, runnerVariables, cache, ...def }) => {
|
|
14
|
-
var _a
|
|
14
|
+
var _a;
|
|
15
15
|
return (0, lodash_1.merge)({
|
|
16
16
|
name: constants_1.APP_BUILD_JOB_NAME,
|
|
17
17
|
envMode: "jobPerEnv",
|
|
@@ -25,14 +25,13 @@ const createAppBuildJob = (context, { script, variables, runnerVariables, cache,
|
|
|
25
25
|
? {
|
|
26
26
|
...context.environment.envVars,
|
|
27
27
|
...context.environment.jobOnlyVars.build.envVars,
|
|
28
|
-
...((_a = context.build.config.extraVars) !== null && _a !== void 0 ? _a : {}),
|
|
29
28
|
}
|
|
30
29
|
: {}),
|
|
31
30
|
},
|
|
32
31
|
runnerVariables: {
|
|
33
32
|
...constants_1.RUNNER_BUILD_RESOURCE_VARIABLES,
|
|
34
33
|
...(runnerVariables !== null && runnerVariables !== void 0 ? runnerVariables : {}),
|
|
35
|
-
...((
|
|
34
|
+
...((_a = context.build.config.runnerVariables) !== null && _a !== void 0 ? _a : {}),
|
|
36
35
|
},
|
|
37
36
|
script: [
|
|
38
37
|
...(context.type === "component"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAppBuildJob.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/base/createAppBuildJob.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAM/B,6BAAuC;AAGvC,uCAA0C;AAC1C,gFAA8E;AAC9E,4DAAyE;AACzE,uCAAiD;AACjD,2CAGqB;AACrB,qDAAkD;AAClD,+CAGuB;AAGhB,MAAM,iBAAiB,GAAG,CAC/B,OAAoE,EACpE,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,GAAG,EAAyB,EAC9D,EAAE;;IAChB,OAAO,IAAA,cAAK,EACV;QACE,IAAI,EAAE,8BAAkB;QACxB,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,IAAA,kBAAc,EAAC,cAAc,CAAC;QACrC,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAA,+CAA8B,EAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;QACzE,SAAS,EAAE;YACT,GAAG,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,CAAC;YACpB,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;gBAC9B,CAAC,CAAC;oBACE,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO;oBAC9B,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO;
|
|
1
|
+
{"version":3,"file":"createAppBuildJob.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/base/createAppBuildJob.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAM/B,6BAAuC;AAGvC,uCAA0C;AAC1C,gFAA8E;AAC9E,4DAAyE;AACzE,uCAAiD;AACjD,2CAGqB;AACrB,qDAAkD;AAClD,+CAGuB;AAGhB,MAAM,iBAAiB,GAAG,CAC/B,OAAoE,EACpE,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,GAAG,EAAyB,EAC9D,EAAE;;IAChB,OAAO,IAAA,cAAK,EACV;QACE,IAAI,EAAE,8BAAkB;QACxB,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,IAAA,kBAAc,EAAC,cAAc,CAAC;QACrC,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAA,+CAA8B,EAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;QACzE,SAAS,EAAE;YACT,GAAG,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,CAAC;YACpB,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;gBAC9B,CAAC,CAAC;oBACE,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO;oBAC9B,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO;iBACjD;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;QACD,eAAe,EAAE;YACf,GAAG,2CAA+B;YAClC,GAAG,CAAC,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,EAAE,CAAC;YAC1B,GAAG,CAAC,MAAA,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,mCAAI,EAAE,CAAC;SAChD;QAED,MAAM,EAAE;YACN,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;gBAC9B,CAAC,CAAC,IAAA,kDAAoC,EAAC,OAAO,CAAC;oBAC7C,CAAC,CAAC,IAAA,yBAAW,EAAC,OAAO,CAAC;oBACtB,CAAC,CAAC,EAAE;gBACN,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;oBAC5B,CAAC,CAAC,OAAO,CAAC,UAAU;yBACf,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,kDAAoC,EAAC,CAAC,CAAC,CAAC;yBACtD,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,yBAAW,EAAC,CAAC,CAAC,CAAC;oBACnC,CAAC,CAAC,EAAE,CAAC;YACT,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,IAAA,+BAAc,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAChE,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,EAAE,wEAAwE;YACvG,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE;YACzB,GAAG,IAAA,mBAAW,EAAC,MAAM,CAAC;SACvB;QACD,SAAS,EAAE,IAAA,gDAAuB,EAAC,OAAO,CAAC;KAC5C,EACD,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC;AA9CW,QAAA,iBAAiB,qBA8C5B"}
|