@catladder/cli 0.0.0-main-0ce5cb2f → 0.0.0-main-ee41ef85

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.
Files changed (60) hide show
  1. package/dist/bundles/catenv/index.js +93 -37
  2. package/dist/bundles/cli/index.js +93 -37
  3. package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +3 -1
  4. package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js.map +1 -1
  5. package/dist/pipeline/src/build/base/index.d.ts +2 -3
  6. package/dist/pipeline/src/build/base/index.js.map +1 -1
  7. package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +6 -4
  8. package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js.map +1 -1
  9. package/dist/pipeline/src/build/custom/buildJob.d.ts +2 -2
  10. package/dist/pipeline/src/build/custom/buildJob.js.map +1 -1
  11. package/dist/pipeline/src/build/custom/index.d.ts +2 -2
  12. package/dist/pipeline/src/build/custom/index.js.map +1 -1
  13. package/dist/pipeline/src/build/custom/testJob.d.ts +2 -2
  14. package/dist/pipeline/src/build/custom/testJob.js.map +1 -1
  15. package/dist/pipeline/src/build/docker.d.ts +4 -4
  16. package/dist/pipeline/src/build/docker.js.map +1 -1
  17. package/dist/pipeline/src/build/index.d.ts +2 -2
  18. package/dist/pipeline/src/build/index.js.map +1 -1
  19. package/dist/pipeline/src/build/node/buildJob.d.ts +5 -3
  20. package/dist/pipeline/src/build/node/buildJob.js.map +1 -1
  21. package/dist/pipeline/src/build/node/index.d.ts +4 -4
  22. package/dist/pipeline/src/build/node/index.js.map +1 -1
  23. package/dist/pipeline/src/build/node/meteor.d.ts +2 -2
  24. package/dist/pipeline/src/build/node/meteor.js.map +1 -1
  25. package/dist/pipeline/src/build/node/yarn.d.ts +1 -1
  26. package/dist/pipeline/src/build/node/yarn.js +3 -1
  27. package/dist/pipeline/src/build/node/yarn.js.map +1 -1
  28. package/dist/pipeline/src/build/rails/build.d.ts +2 -2
  29. package/dist/pipeline/src/build/rails/build.js.map +1 -1
  30. package/dist/pipeline/src/build/rails/index.d.ts +2 -2
  31. package/dist/pipeline/src/build/rails/index.js.map +1 -1
  32. package/dist/pipeline/src/build/sbom.d.ts +2 -2
  33. package/dist/pipeline/src/build/sbom.js.map +1 -1
  34. package/dist/pipeline/src/context/createComponentContext.js +17 -6
  35. package/dist/pipeline/src/context/createComponentContext.js.map +1 -1
  36. package/dist/pipeline/src/context/getLabels.js +3 -1
  37. package/dist/pipeline/src/context/getLabels.js.map +1 -1
  38. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +2 -2
  39. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js.map +1 -1
  40. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +27 -7
  41. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js.map +1 -1
  42. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +1 -2
  43. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js +3 -10
  44. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js.map +1 -1
  45. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +2 -0
  46. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +12 -0
  47. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js.map +1 -0
  48. package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +2 -2
  49. package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +3 -1
  50. package/dist/pipeline/src/deploy/kubernetes/kubeValues.js.map +1 -1
  51. package/dist/pipeline/src/deploy/sbom.js +4 -3
  52. package/dist/pipeline/src/deploy/sbom.js.map +1 -1
  53. package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +20 -0
  54. package/dist/pipeline/src/pipeline/createJobsForComponent.js +3 -1
  55. package/dist/pipeline/src/pipeline/createJobsForComponent.js.map +1 -1
  56. package/dist/pipeline/src/types/config.d.ts +1 -1
  57. package/dist/pipeline/src/types/context.d.ts +6 -1
  58. package/dist/pipeline/src/types/context.js.map +1 -1
  59. package/dist/tsconfig.tsbuildinfo +1 -1
  60. package/package.json +1 -1
@@ -1232,7 +1232,9 @@ exports.createBuildJobArtifacts = createBuildJobArtifacts;
1232
1232
  const getArtifactsPathForComponent = (c, additionalPaths) => {
1233
1233
  var _a, _b;
1234
1234
  return (_b = [
1235
- ...((_a = c.build.config.artifactsPaths) !== null && _a !== void 0 ? _a : []),
1235
+ ...(c.build.type !== "disabled"
1236
+ ? ((_a = c.build.config.artifactsPaths) !== null && _a !== void 0 ? _a : [])
1237
+ : []),
1236
1238
  ...(additionalPaths !== null && additionalPaths !== void 0 ? additionalPaths : []),
1237
1239
  ]) === null || _b === void 0 ? void 0 : _b.flatMap((artifact) => c.build
1238
1240
  // in theory, we only need "direct",
@@ -1608,10 +1610,12 @@ const getAllCacheConfigsFromConfig = (context, configWithCache) => {
1608
1610
  // we would probably need to introduce a path to the right config property (build-->test or so)
1609
1611
  context.components.flatMap((componentContext) => {
1610
1612
  var _a;
1611
- return (_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
1612
- ...c,
1613
- baseDir: componentContext.build.dir,
1614
- }))) !== null && _a !== void 0 ? _a : [];
1613
+ return componentContext.build.type !== "disabled"
1614
+ ? ((_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
1615
+ ...c,
1616
+ baseDir: componentContext.build.dir,
1617
+ }))) !== null && _a !== void 0 ? _a : [])
1618
+ : [];
1615
1619
  })
1616
1620
  : []),
1617
1621
  ];
@@ -2379,7 +2383,9 @@ const ensureNodeVersion = (context) => (0, gitlab_1.collapseableSection)("nodein
2379
2383
  ]);
2380
2384
  exports.ensureNodeVersion = ensureNodeVersion;
2381
2385
  const getYarnInstall = (context, options) => {
2382
- const postInstall = context.type !== "workspace" && "postInstall" in context.build.config
2386
+ const postInstall = context.type !== "workspace" &&
2387
+ context.build.type !== "disabled" &&
2388
+ "postInstall" in context.build.config
2383
2389
  ? context.build.config.postInstall
2384
2390
  : null;
2385
2391
  return [
@@ -2837,19 +2843,23 @@ const createComponentContext = async (ctx) => {
2837
2843
  const packageManagerInfo = await (0, packageManager_1.getPackageManagerInfoForComponent)(ctx.config, ctx.componentName);
2838
2844
  const envContext = (0, getEnvironmentContext_1.getEnvironmentContext)(ctx);
2839
2845
  const componentConfigWithoutDefaults = envContext.envConfigRaw;
2840
- const resolvedBuildType = (0, build_1.isStandaloneBuildConfig)(componentConfigWithoutDefaults.build)
2841
- ? componentConfigWithoutDefaults.build.type
2842
- : (_a = ctx.config.builds) === null || _a === void 0 ? void 0 : _a[componentConfigWithoutDefaults.build.from].type;
2843
- if (!resolvedBuildType) {
2846
+ const resolvedBuildType = componentConfigWithoutDefaults.build === false
2847
+ ? false
2848
+ : (0, build_1.isStandaloneBuildConfig)(componentConfigWithoutDefaults.build)
2849
+ ? componentConfigWithoutDefaults.build.type
2850
+ : (_a = ctx.config.builds) === null || _a === void 0 ? void 0 : _a[componentConfigWithoutDefaults.build.from].type;
2851
+ if (resolvedBuildType === undefined) {
2844
2852
  throw new Error("build type not found, is the build config correct?");
2845
2853
  }
2846
2854
  const defaults = componentConfigWithoutDefaults.deploy
2847
2855
  ? {
2848
- build: build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
2856
+ build: resolvedBuildType &&
2857
+ build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
2849
2858
  deploy: deploy_1.DEPLOY_TYPES[componentConfigWithoutDefaults.deploy.type].defaults(envContext),
2850
2859
  }
2851
2860
  : {
2852
- build: build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
2861
+ build: resolvedBuildType &&
2862
+ build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
2853
2863
  deploy: {},
2854
2864
  };
2855
2865
  const componentConfig = (0, utils_1.mergeWithMergingArrays)(defaults, componentConfigWithoutDefaults);
@@ -2867,6 +2877,13 @@ const createComponentContext = async (ctx) => {
2867
2877
  };
2868
2878
  const _getBuildContext = () => {
2869
2879
  var _a;
2880
+ if (build === false) {
2881
+ return {
2882
+ type: "disabled",
2883
+ getComponentDirs,
2884
+ dir,
2885
+ };
2886
+ }
2870
2887
  if ((0, build_1.isStandaloneBuildConfig)(build)) {
2871
2888
  return {
2872
2889
  dir: dir,
@@ -3283,7 +3300,9 @@ const getLabels = (context) => {
3283
3300
  "app-name": sanitize(context.fullConfig.appName),
3284
3301
  "env-type": sanitize(context.environment.envType),
3285
3302
  "env-name": sanitize(context.env),
3286
- "build-type": sanitize(context.build.buildType),
3303
+ "build-type": context.build.type === "disabled"
3304
+ ? "disabled"
3305
+ : sanitize(context.build.buildType),
3287
3306
  ...((_b = (_a = context.fullConfig.meta) === null || _a === void 0 ? void 0 : _a.labels) !== null && _b !== void 0 ? _b : {}),
3288
3307
  };
3289
3308
  return labels;
@@ -3877,7 +3896,7 @@ const jobName_1 = __nccwpck_require__(9626);
3877
3896
  const common_1 = __nccwpck_require__(3325);
3878
3897
  const constants_1 = __nccwpck_require__(8865);
3879
3898
  const volumes_1 = __nccwpck_require__(847);
3880
- const onDeploy_1 = __nccwpck_require__(2358);
3899
+ const getJobOrServiceArgs_1 = __nccwpck_require__(1741);
3881
3900
  const getDeleteJobsScripts = (context) => {
3882
3901
  const commonArgs = (0, common_1.getCommonCloudRunArgs)(context);
3883
3902
  const commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
@@ -3897,7 +3916,7 @@ const getJobCreateScripts = (context) => (0, exports.getCloudRunJobsWithNames)(c
3897
3916
  const { image: commonImage, project, region, ...deployArgs } = (0, common_1.getCommonDeployArgs)(context);
3898
3917
  const commonDeployArgsString = (0, createArgsString_1.createArgsString)({
3899
3918
  command: `"${commandArray.join(",")}"`,
3900
- args: (0, onDeploy_1.getCloudRunJobArgsArg)(job.args),
3919
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(job.args),
3901
3920
  labels: `"${(0, common_1.makeLabelString)((0, getLabels_1.getLabels)(context))},cloud-run-job-name=$current_job_name"`,
3902
3921
  image: `"${(_a = job.image) !== null && _a !== void 0 ? _a : commonImage}"`,
3903
3922
  project,
@@ -3957,17 +3976,20 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
3957
3976
  exports.getServiceDeleteScript = exports.getServiceDeployScript = void 0;
3958
3977
  const getLabels_1 = __nccwpck_require__(920);
3959
3978
  const createArgsString_1 = __nccwpck_require__(9598);
3979
+ const getJobOrServiceArgs_1 = __nccwpck_require__(1741);
3960
3980
  const getServiceName_1 = __nccwpck_require__(8128);
3961
3981
  const common_1 = __nccwpck_require__(3325);
3962
3982
  const constants_1 = __nccwpck_require__(8865);
3963
3983
  const volumes_1 = __nccwpck_require__(847);
3964
3984
  const getServiceDeployScript = (context, service, nameSuffix) => {
3965
- var _a, _b, _c, _d, _e;
3985
+ var _a, _b, _c, _d, _e, _f;
3966
3986
  const commonDeployArgs = (0, common_1.getCommonDeployArgs)(context);
3967
3987
  const serviceName = (0, getServiceName_1.getServiceName)(context);
3968
3988
  const customConfig = service !== true ? service : undefined;
3969
3989
  const command = service !== true
3970
- ? ((_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : context.build.config.startCommand)
3990
+ ? ((_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : (context.build.type !== "disabled"
3991
+ ? context.build.config.startCommand
3992
+ : undefined))
3971
3993
  : undefined;
3972
3994
  const commandArray = command
3973
3995
  ? Array.isArray(command)
@@ -3978,14 +4000,16 @@ const getServiceDeployScript = (context, service, nameSuffix) => {
3978
4000
  const argsString = (0, createArgsString_1.createArgsString)({
3979
4001
  // command as empty string resets it to default (uses the image's entrypoint)
3980
4002
  command: commandArray ? '"' + commandArray.join(",") + '"' : '""',
4003
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.args),
3981
4004
  ...commonDeployArgs,
4005
+ image: (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.image) !== null && _b !== void 0 ? _b : commonDeployArgs.image,
3982
4006
  labels: (0, common_1.makeLabelString)({
3983
4007
  ...(0, getLabels_1.getLabels)(context),
3984
4008
  "cloud-run-service-name": fullServiceName,
3985
4009
  }),
3986
4010
  "env-vars-file": constants_1.ENV_VARS_FILENAME,
3987
- "min-instances": (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _b !== void 0 ? _b : 0,
3988
- "max-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _c !== void 0 ? _c : 100,
4011
+ "min-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _c !== void 0 ? _c : 0,
4012
+ "max-instances": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _d !== void 0 ? _d : 100,
3989
4013
  "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true,
3990
4014
  cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu,
3991
4015
  memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory,
@@ -3995,12 +4019,15 @@ const getServiceDeployScript = (context, service, nameSuffix) => {
3995
4019
  network: customConfig === null || customConfig === void 0 ? void 0 : customConfig.network,
3996
4020
  subnet: customConfig === null || customConfig === void 0 ? void 0 : customConfig.subnet,
3997
4021
  "use-http2": customConfig === null || customConfig === void 0 ? void 0 : customConfig.http2,
3998
- "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true,
3999
- ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all",
4022
+ "allow-unauthenticated": (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _e !== void 0 ? _e : true,
4023
+ ingress: (_f = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _f !== void 0 ? _f : "all",
4000
4024
  "cpu-boost": true,
4001
4025
  "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment,
4026
+ gpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.gpu,
4027
+ "gpu-type": customConfig === null || customConfig === void 0 ? void 0 : customConfig.gpuType,
4002
4028
  }, ...(0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service"));
4003
- return `${(0, common_1.gcloudRunCmd)()} deploy ${fullServiceName} ${argsString}`;
4029
+ const version = requiresBeta(customConfig) ? "beta" : undefined;
4030
+ return `${(0, common_1.gcloudRunCmd)(version)} deploy ${fullServiceName} ${argsString}`;
4004
4031
  };
4005
4032
  exports.getServiceDeployScript = getServiceDeployScript;
4006
4033
  const getServiceDeleteScript = (context, serviceSuffix) => {
@@ -4015,6 +4042,18 @@ const getServiceDeleteScript = (context, serviceSuffix) => {
4015
4042
  ];
4016
4043
  };
4017
4044
  exports.getServiceDeleteScript = getServiceDeleteScript;
4045
+ const requiresBeta = (config) => {
4046
+ if (!config) {
4047
+ return false;
4048
+ }
4049
+ if (config.gpuType) {
4050
+ return true;
4051
+ }
4052
+ if (config.gpu && config.gpu > 0) {
4053
+ return true;
4054
+ }
4055
+ return false;
4056
+ };
4018
4057
  //# sourceMappingURL=cloudRunServices.js.map
4019
4058
 
4020
4059
  /***/ }),
@@ -4101,8 +4140,9 @@ exports.ENV_VARS_FILENAME = "____envvars.yaml";
4101
4140
  "use strict";
4102
4141
 
4103
4142
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4104
- exports.getCloudRunJobArgsArg = exports.getOnDeployExecuteScript = void 0;
4143
+ exports.getOnDeployExecuteScript = void 0;
4105
4144
  const createArgsString_1 = __nccwpck_require__(9598);
4145
+ const getJobOrServiceArgs_1 = __nccwpck_require__(1741);
4106
4146
  const jobName_1 = __nccwpck_require__(9626);
4107
4147
  const cloudRunJobs_1 = __nccwpck_require__(1224);
4108
4148
  const common_1 = __nccwpck_require__(3325);
@@ -4170,19 +4210,11 @@ const getJobRunScriptForExecute = (context, { jobName, config }) => {
4170
4210
  const argString = (0, createArgsString_1.createArgsString)({
4171
4211
  ...commonArgs,
4172
4212
  wait: waitForCompletion === true ? true : undefined,
4173
- args: (0, exports.getCloudRunJobArgsArg)(config.args),
4213
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(config.args),
4174
4214
  });
4175
4215
  const fullJobName = (0, jobName_1.getFullJobName)(context, jobName);
4176
4216
  return `${(0, common_1.gcloudRunCmd)()} jobs execute ${fullJobName.toString()} ${argString}`;
4177
4217
  };
4178
- const getCloudRunJobArgsArg = (args) => {
4179
- return args !== undefined
4180
- ? args.length > 0
4181
- ? args === null || args === void 0 ? void 0 : args.map((arg) => `"${arg}"`).join(",")
4182
- : ""
4183
- : undefined;
4184
- };
4185
- exports.getCloudRunJobArgsArg = getCloudRunJobArgsArg;
4186
4218
  //# sourceMappingURL=onDeploy.js.map
4187
4219
 
4188
4220
  /***/ }),
@@ -4727,6 +4759,25 @@ exports.gcloudServiceAccountLoginCommands = gcloudServiceAccountLoginCommands;
4727
4759
 
4728
4760
  /***/ }),
4729
4761
 
4762
+ /***/ 1741:
4763
+ /***/ ((__unused_webpack_module, exports) => {
4764
+
4765
+ "use strict";
4766
+
4767
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
4768
+ exports.getCloudRunServiceOrJobArgsArg = void 0;
4769
+ const getCloudRunServiceOrJobArgsArg = (args) => {
4770
+ return args !== undefined
4771
+ ? args.length > 0
4772
+ ? args === null || args === void 0 ? void 0 : args.map((arg) => `"${arg}"`).join(",")
4773
+ : ""
4774
+ : undefined;
4775
+ };
4776
+ exports.getCloudRunServiceOrJobArgsArg = getCloudRunServiceOrJobArgsArg;
4777
+ //# sourceMappingURL=getJobOrServiceArgs.js.map
4778
+
4779
+ /***/ }),
4780
+
4730
4781
  /***/ 8128:
4731
4782
  /***/ ((__unused_webpack_module, exports) => {
4732
4783
 
@@ -5269,7 +5320,9 @@ const createAppConfig = (context, application) => {
5269
5320
  const { healthRoute, command, ...rest } = application !== null && application !== void 0 ? application : {};
5270
5321
  return (0, utils_1.mergeWithMergingArrays)({
5271
5322
  host: context.environment.envVars.HOSTNAME,
5272
- command: command !== null && command !== void 0 ? command : context.build.config.startCommand,
5323
+ command: command !== null && command !== void 0 ? command : (context.build.type !== "disabled"
5324
+ ? context.build.config.startCommand
5325
+ : undefined),
5273
5326
  livenessProbe: {
5274
5327
  httpGet: {
5275
5328
  path: healthRoute !== null && healthRoute !== void 0 ? healthRoute : "__health",
@@ -5449,9 +5502,10 @@ exports.getDependencyTrackDeleteScript = exports.getDependencyTrackUploadScript
5449
5502
  const BashExpression_1 = __nccwpck_require__(2376);
5450
5503
  const sbom_1 = __nccwpck_require__(7038);
5451
5504
  const context_1 = __nccwpck_require__(1724);
5452
- const sbomDeactivated = (context) => (0, context_1.componentContextIsStandaloneBuild)(context) &&
5453
- context.build.config.type === "custom" &&
5454
- context.build.config.sbom === false;
5505
+ const sbomDeactivated = (context) => context.build.type === "disabled" ||
5506
+ ((0, context_1.componentContextIsStandaloneBuild)(context) &&
5507
+ context.build.config.type === "custom" &&
5508
+ context.build.config.sbom === false);
5455
5509
  exports.sbomDeactivated = sbomDeactivated;
5456
5510
  const getDependencyTrackUploadScript = (context) => {
5457
5511
  return (0, exports.sbomDeactivated)(context)
@@ -5744,7 +5798,9 @@ const getCustomJobs = (context) => {
5744
5798
  return injectDefaultVarsInCustomJobs(context, rawJobs);
5745
5799
  };
5746
5800
  const createJobsForComponentContext = (context) => {
5747
- const buildJobs = build_1.BUILD_TYPES[context.build.buildType].jobs(context);
5801
+ const buildJobs = context.build.type !== "disabled"
5802
+ ? build_1.BUILD_TYPES[context.build.buildType].jobs(context)
5803
+ : [];
5748
5804
  const deployJobs = context.componentConfig.deploy !== false
5749
5805
  ? deploy_1.DEPLOY_TYPES[context.componentConfig.deploy.type].jobs(context)
5750
5806
  : [];
@@ -4250,7 +4250,9 @@ exports.createBuildJobArtifacts = createBuildJobArtifacts;
4250
4250
  const getArtifactsPathForComponent = (c, additionalPaths) => {
4251
4251
  var _a, _b;
4252
4252
  return (_b = [
4253
- ...((_a = c.build.config.artifactsPaths) !== null && _a !== void 0 ? _a : []),
4253
+ ...(c.build.type !== "disabled"
4254
+ ? ((_a = c.build.config.artifactsPaths) !== null && _a !== void 0 ? _a : [])
4255
+ : []),
4254
4256
  ...(additionalPaths !== null && additionalPaths !== void 0 ? additionalPaths : []),
4255
4257
  ]) === null || _b === void 0 ? void 0 : _b.flatMap((artifact) => c.build
4256
4258
  // in theory, we only need "direct",
@@ -4626,10 +4628,12 @@ const getAllCacheConfigsFromConfig = (context, configWithCache) => {
4626
4628
  // we would probably need to introduce a path to the right config property (build-->test or so)
4627
4629
  context.components.flatMap((componentContext) => {
4628
4630
  var _a;
4629
- return (_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
4630
- ...c,
4631
- baseDir: componentContext.build.dir,
4632
- }))) !== null && _a !== void 0 ? _a : [];
4631
+ return componentContext.build.type !== "disabled"
4632
+ ? ((_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
4633
+ ...c,
4634
+ baseDir: componentContext.build.dir,
4635
+ }))) !== null && _a !== void 0 ? _a : [])
4636
+ : [];
4633
4637
  })
4634
4638
  : []),
4635
4639
  ];
@@ -5397,7 +5401,9 @@ const ensureNodeVersion = (context) => (0, gitlab_1.collapseableSection)("nodein
5397
5401
  ]);
5398
5402
  exports.ensureNodeVersion = ensureNodeVersion;
5399
5403
  const getYarnInstall = (context, options) => {
5400
- const postInstall = context.type !== "workspace" && "postInstall" in context.build.config
5404
+ const postInstall = context.type !== "workspace" &&
5405
+ context.build.type !== "disabled" &&
5406
+ "postInstall" in context.build.config
5401
5407
  ? context.build.config.postInstall
5402
5408
  : null;
5403
5409
  return [
@@ -5855,19 +5861,23 @@ const createComponentContext = async (ctx) => {
5855
5861
  const packageManagerInfo = await (0, packageManager_1.getPackageManagerInfoForComponent)(ctx.config, ctx.componentName);
5856
5862
  const envContext = (0, getEnvironmentContext_1.getEnvironmentContext)(ctx);
5857
5863
  const componentConfigWithoutDefaults = envContext.envConfigRaw;
5858
- const resolvedBuildType = (0, build_1.isStandaloneBuildConfig)(componentConfigWithoutDefaults.build)
5859
- ? componentConfigWithoutDefaults.build.type
5860
- : (_a = ctx.config.builds) === null || _a === void 0 ? void 0 : _a[componentConfigWithoutDefaults.build.from].type;
5861
- if (!resolvedBuildType) {
5864
+ const resolvedBuildType = componentConfigWithoutDefaults.build === false
5865
+ ? false
5866
+ : (0, build_1.isStandaloneBuildConfig)(componentConfigWithoutDefaults.build)
5867
+ ? componentConfigWithoutDefaults.build.type
5868
+ : (_a = ctx.config.builds) === null || _a === void 0 ? void 0 : _a[componentConfigWithoutDefaults.build.from].type;
5869
+ if (resolvedBuildType === undefined) {
5862
5870
  throw new Error("build type not found, is the build config correct?");
5863
5871
  }
5864
5872
  const defaults = componentConfigWithoutDefaults.deploy
5865
5873
  ? {
5866
- build: build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
5874
+ build: resolvedBuildType &&
5875
+ build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
5867
5876
  deploy: deploy_1.DEPLOY_TYPES[componentConfigWithoutDefaults.deploy.type].defaults(envContext),
5868
5877
  }
5869
5878
  : {
5870
- build: build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
5879
+ build: resolvedBuildType &&
5880
+ build_1.BUILD_TYPES[resolvedBuildType].defaults(envContext),
5871
5881
  deploy: {},
5872
5882
  };
5873
5883
  const componentConfig = (0, utils_1.mergeWithMergingArrays)(defaults, componentConfigWithoutDefaults);
@@ -5885,6 +5895,13 @@ const createComponentContext = async (ctx) => {
5885
5895
  };
5886
5896
  const _getBuildContext = () => {
5887
5897
  var _a;
5898
+ if (build === false) {
5899
+ return {
5900
+ type: "disabled",
5901
+ getComponentDirs,
5902
+ dir,
5903
+ };
5904
+ }
5888
5905
  if ((0, build_1.isStandaloneBuildConfig)(build)) {
5889
5906
  return {
5890
5907
  dir: dir,
@@ -6301,7 +6318,9 @@ const getLabels = (context) => {
6301
6318
  "app-name": sanitize(context.fullConfig.appName),
6302
6319
  "env-type": sanitize(context.environment.envType),
6303
6320
  "env-name": sanitize(context.env),
6304
- "build-type": sanitize(context.build.buildType),
6321
+ "build-type": context.build.type === "disabled"
6322
+ ? "disabled"
6323
+ : sanitize(context.build.buildType),
6305
6324
  ...((_b = (_a = context.fullConfig.meta) === null || _a === void 0 ? void 0 : _a.labels) !== null && _b !== void 0 ? _b : {}),
6306
6325
  };
6307
6326
  return labels;
@@ -6895,7 +6914,7 @@ const jobName_1 = __nccwpck_require__(9626);
6895
6914
  const common_1 = __nccwpck_require__(73325);
6896
6915
  const constants_1 = __nccwpck_require__(38865);
6897
6916
  const volumes_1 = __nccwpck_require__(60847);
6898
- const onDeploy_1 = __nccwpck_require__(2358);
6917
+ const getJobOrServiceArgs_1 = __nccwpck_require__(61741);
6899
6918
  const getDeleteJobsScripts = (context) => {
6900
6919
  const commonArgs = (0, common_1.getCommonCloudRunArgs)(context);
6901
6920
  const commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
@@ -6915,7 +6934,7 @@ const getJobCreateScripts = (context) => (0, exports.getCloudRunJobsWithNames)(c
6915
6934
  const { image: commonImage, project, region, ...deployArgs } = (0, common_1.getCommonDeployArgs)(context);
6916
6935
  const commonDeployArgsString = (0, createArgsString_1.createArgsString)({
6917
6936
  command: `"${commandArray.join(",")}"`,
6918
- args: (0, onDeploy_1.getCloudRunJobArgsArg)(job.args),
6937
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(job.args),
6919
6938
  labels: `"${(0, common_1.makeLabelString)((0, getLabels_1.getLabels)(context))},cloud-run-job-name=$current_job_name"`,
6920
6939
  image: `"${(_a = job.image) !== null && _a !== void 0 ? _a : commonImage}"`,
6921
6940
  project,
@@ -6975,17 +6994,20 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
6975
6994
  exports.getServiceDeleteScript = exports.getServiceDeployScript = void 0;
6976
6995
  const getLabels_1 = __nccwpck_require__(30920);
6977
6996
  const createArgsString_1 = __nccwpck_require__(49598);
6997
+ const getJobOrServiceArgs_1 = __nccwpck_require__(61741);
6978
6998
  const getServiceName_1 = __nccwpck_require__(38128);
6979
6999
  const common_1 = __nccwpck_require__(73325);
6980
7000
  const constants_1 = __nccwpck_require__(38865);
6981
7001
  const volumes_1 = __nccwpck_require__(60847);
6982
7002
  const getServiceDeployScript = (context, service, nameSuffix) => {
6983
- var _a, _b, _c, _d, _e;
7003
+ var _a, _b, _c, _d, _e, _f;
6984
7004
  const commonDeployArgs = (0, common_1.getCommonDeployArgs)(context);
6985
7005
  const serviceName = (0, getServiceName_1.getServiceName)(context);
6986
7006
  const customConfig = service !== true ? service : undefined;
6987
7007
  const command = service !== true
6988
- ? ((_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : context.build.config.startCommand)
7008
+ ? ((_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : (context.build.type !== "disabled"
7009
+ ? context.build.config.startCommand
7010
+ : undefined))
6989
7011
  : undefined;
6990
7012
  const commandArray = command
6991
7013
  ? Array.isArray(command)
@@ -6996,14 +7018,16 @@ const getServiceDeployScript = (context, service, nameSuffix) => {
6996
7018
  const argsString = (0, createArgsString_1.createArgsString)({
6997
7019
  // command as empty string resets it to default (uses the image's entrypoint)
6998
7020
  command: commandArray ? '"' + commandArray.join(",") + '"' : '""',
7021
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.args),
6999
7022
  ...commonDeployArgs,
7023
+ image: (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.image) !== null && _b !== void 0 ? _b : commonDeployArgs.image,
7000
7024
  labels: (0, common_1.makeLabelString)({
7001
7025
  ...(0, getLabels_1.getLabels)(context),
7002
7026
  "cloud-run-service-name": fullServiceName,
7003
7027
  }),
7004
7028
  "env-vars-file": constants_1.ENV_VARS_FILENAME,
7005
- "min-instances": (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _b !== void 0 ? _b : 0,
7006
- "max-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _c !== void 0 ? _c : 100,
7029
+ "min-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _c !== void 0 ? _c : 0,
7030
+ "max-instances": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _d !== void 0 ? _d : 100,
7007
7031
  "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true,
7008
7032
  cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu,
7009
7033
  memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory,
@@ -7013,12 +7037,15 @@ const getServiceDeployScript = (context, service, nameSuffix) => {
7013
7037
  network: customConfig === null || customConfig === void 0 ? void 0 : customConfig.network,
7014
7038
  subnet: customConfig === null || customConfig === void 0 ? void 0 : customConfig.subnet,
7015
7039
  "use-http2": customConfig === null || customConfig === void 0 ? void 0 : customConfig.http2,
7016
- "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true,
7017
- ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all",
7040
+ "allow-unauthenticated": (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _e !== void 0 ? _e : true,
7041
+ ingress: (_f = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _f !== void 0 ? _f : "all",
7018
7042
  "cpu-boost": true,
7019
7043
  "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment,
7044
+ gpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.gpu,
7045
+ "gpu-type": customConfig === null || customConfig === void 0 ? void 0 : customConfig.gpuType,
7020
7046
  }, ...(0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service"));
7021
- return `${(0, common_1.gcloudRunCmd)()} deploy ${fullServiceName} ${argsString}`;
7047
+ const version = requiresBeta(customConfig) ? "beta" : undefined;
7048
+ return `${(0, common_1.gcloudRunCmd)(version)} deploy ${fullServiceName} ${argsString}`;
7022
7049
  };
7023
7050
  exports.getServiceDeployScript = getServiceDeployScript;
7024
7051
  const getServiceDeleteScript = (context, serviceSuffix) => {
@@ -7033,6 +7060,18 @@ const getServiceDeleteScript = (context, serviceSuffix) => {
7033
7060
  ];
7034
7061
  };
7035
7062
  exports.getServiceDeleteScript = getServiceDeleteScript;
7063
+ const requiresBeta = (config) => {
7064
+ if (!config) {
7065
+ return false;
7066
+ }
7067
+ if (config.gpuType) {
7068
+ return true;
7069
+ }
7070
+ if (config.gpu && config.gpu > 0) {
7071
+ return true;
7072
+ }
7073
+ return false;
7074
+ };
7036
7075
  //# sourceMappingURL=cloudRunServices.js.map
7037
7076
 
7038
7077
  /***/ }),
@@ -7119,8 +7158,9 @@ exports.ENV_VARS_FILENAME = "____envvars.yaml";
7119
7158
  "use strict";
7120
7159
 
7121
7160
  Object.defineProperty(exports, "__esModule", ({ value: true }));
7122
- exports.getCloudRunJobArgsArg = exports.getOnDeployExecuteScript = void 0;
7161
+ exports.getOnDeployExecuteScript = void 0;
7123
7162
  const createArgsString_1 = __nccwpck_require__(49598);
7163
+ const getJobOrServiceArgs_1 = __nccwpck_require__(61741);
7124
7164
  const jobName_1 = __nccwpck_require__(9626);
7125
7165
  const cloudRunJobs_1 = __nccwpck_require__(61224);
7126
7166
  const common_1 = __nccwpck_require__(73325);
@@ -7188,19 +7228,11 @@ const getJobRunScriptForExecute = (context, { jobName, config }) => {
7188
7228
  const argString = (0, createArgsString_1.createArgsString)({
7189
7229
  ...commonArgs,
7190
7230
  wait: waitForCompletion === true ? true : undefined,
7191
- args: (0, exports.getCloudRunJobArgsArg)(config.args),
7231
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(config.args),
7192
7232
  });
7193
7233
  const fullJobName = (0, jobName_1.getFullJobName)(context, jobName);
7194
7234
  return `${(0, common_1.gcloudRunCmd)()} jobs execute ${fullJobName.toString()} ${argString}`;
7195
7235
  };
7196
- const getCloudRunJobArgsArg = (args) => {
7197
- return args !== undefined
7198
- ? args.length > 0
7199
- ? args === null || args === void 0 ? void 0 : args.map((arg) => `"${arg}"`).join(",")
7200
- : ""
7201
- : undefined;
7202
- };
7203
- exports.getCloudRunJobArgsArg = getCloudRunJobArgsArg;
7204
7236
  //# sourceMappingURL=onDeploy.js.map
7205
7237
 
7206
7238
  /***/ }),
@@ -7745,6 +7777,25 @@ exports.gcloudServiceAccountLoginCommands = gcloudServiceAccountLoginCommands;
7745
7777
 
7746
7778
  /***/ }),
7747
7779
 
7780
+ /***/ 61741:
7781
+ /***/ ((__unused_webpack_module, exports) => {
7782
+
7783
+ "use strict";
7784
+
7785
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
7786
+ exports.getCloudRunServiceOrJobArgsArg = void 0;
7787
+ const getCloudRunServiceOrJobArgsArg = (args) => {
7788
+ return args !== undefined
7789
+ ? args.length > 0
7790
+ ? args === null || args === void 0 ? void 0 : args.map((arg) => `"${arg}"`).join(",")
7791
+ : ""
7792
+ : undefined;
7793
+ };
7794
+ exports.getCloudRunServiceOrJobArgsArg = getCloudRunServiceOrJobArgsArg;
7795
+ //# sourceMappingURL=getJobOrServiceArgs.js.map
7796
+
7797
+ /***/ }),
7798
+
7748
7799
  /***/ 38128:
7749
7800
  /***/ ((__unused_webpack_module, exports) => {
7750
7801
 
@@ -8287,7 +8338,9 @@ const createAppConfig = (context, application) => {
8287
8338
  const { healthRoute, command, ...rest } = application !== null && application !== void 0 ? application : {};
8288
8339
  return (0, utils_1.mergeWithMergingArrays)({
8289
8340
  host: context.environment.envVars.HOSTNAME,
8290
- command: command !== null && command !== void 0 ? command : context.build.config.startCommand,
8341
+ command: command !== null && command !== void 0 ? command : (context.build.type !== "disabled"
8342
+ ? context.build.config.startCommand
8343
+ : undefined),
8291
8344
  livenessProbe: {
8292
8345
  httpGet: {
8293
8346
  path: healthRoute !== null && healthRoute !== void 0 ? healthRoute : "__health",
@@ -8467,9 +8520,10 @@ exports.getDependencyTrackDeleteScript = exports.getDependencyTrackUploadScript
8467
8520
  const BashExpression_1 = __nccwpck_require__(42376);
8468
8521
  const sbom_1 = __nccwpck_require__(37038);
8469
8522
  const context_1 = __nccwpck_require__(61724);
8470
- const sbomDeactivated = (context) => (0, context_1.componentContextIsStandaloneBuild)(context) &&
8471
- context.build.config.type === "custom" &&
8472
- context.build.config.sbom === false;
8523
+ const sbomDeactivated = (context) => context.build.type === "disabled" ||
8524
+ ((0, context_1.componentContextIsStandaloneBuild)(context) &&
8525
+ context.build.config.type === "custom" &&
8526
+ context.build.config.sbom === false);
8473
8527
  exports.sbomDeactivated = sbomDeactivated;
8474
8528
  const getDependencyTrackUploadScript = (context) => {
8475
8529
  return (0, exports.sbomDeactivated)(context)
@@ -8762,7 +8816,9 @@ const getCustomJobs = (context) => {
8762
8816
  return injectDefaultVarsInCustomJobs(context, rawJobs);
8763
8817
  };
8764
8818
  const createJobsForComponentContext = (context) => {
8765
- const buildJobs = build_1.BUILD_TYPES[context.build.buildType].jobs(context);
8819
+ const buildJobs = context.build.type !== "disabled"
8820
+ ? build_1.BUILD_TYPES[context.build.buildType].jobs(context)
8821
+ : [];
8766
8822
  const deployJobs = context.componentConfig.deploy !== false
8767
8823
  ? deploy_1.DEPLOY_TYPES[context.componentConfig.deploy.type].jobs(context)
8768
8824
  : [];
@@ -32,7 +32,9 @@ exports.createBuildJobArtifacts = createBuildJobArtifacts;
32
32
  const getArtifactsPathForComponent = (c, additionalPaths) => {
33
33
  var _a, _b;
34
34
  return (_b = [
35
- ...((_a = c.build.config.artifactsPaths) !== null && _a !== void 0 ? _a : []),
35
+ ...(c.build.type !== "disabled"
36
+ ? ((_a = c.build.config.artifactsPaths) !== null && _a !== void 0 ? _a : [])
37
+ : []),
36
38
  ...(additionalPaths !== null && additionalPaths !== void 0 ? additionalPaths : []),
37
39
  ]) === null || _b === void 0 ? void 0 : _b.flatMap((artifact) => c.build
38
40
  // in theory, we only need "direct",
@@ -1 +1 @@
1
- {"version":3,"file":"createBuildJobArtifact.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/artifacts/createBuildJobArtifact.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAC5B,uCAIqB;AAErB,mCAA8B;AAC9B,qDAA2E;AAEpE,MAAM,uBAAuB,GAAG,CACrC,OAAgB,EACW,EAAE;;IAC7B,MAAM,KAAK,GACT,OAAO,CAAC,IAAI,KAAK,WAAW;QAC1B,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC;QACpE,CAAC,CAAC,4BAA4B,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACnE,mCAAmC;IACnC,MAAM,OAAO,GACX,OAAO,CAAC,IAAI,KAAK,WAAW;QAC1B,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;QAClE,CAAC,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO;QACL,KAAK,EAAE,IAAA,aAAI,EAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAA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,kDAAoC,EAAC,CAAC,CAAC,EAAE,CAAC;QAC5C,OAAO,CAAC,IAAA,WAAI,EAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
1
+ {"version":3,"file":"createBuildJobArtifact.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/artifacts/createBuildJobArtifact.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAC5B,uCAIqB;AAErB,mCAA8B;AAC9B,qDAA2E;AAEpE,MAAM,uBAAuB,GAAG,CACrC,OAAgB,EACW,EAAE;;IAC7B,MAAM,KAAK,GACT,OAAO,CAAC,IAAI,KAAK,WAAW;QAC1B,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC;QACpE,CAAC,CAAC,4BAA4B,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACnE,mCAAmC;IACnC,MAAM,OAAO,GACX,OAAO,CAAC,IAAI,KAAK,WAAW;QAC1B,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;QAClE,CAAC,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO;QACL,KAAK,EAAE,IAAA,aAAI,EAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACrD,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1C,SAAS,EAAE,OAAO;QAClB,IAAI,EAAE,QAAQ;QACd,OAA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AC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
@@ -1,8 +1,7 @@
1
- import type { WorkspaceContext } from "../../types/context";
2
- import { type ComponentContext } from "../../types/context";
1
+ import type { ComponentContextWithBuild, WorkspaceContext } from "../../types/context";
3
2
  import type { AppBuildJobDefinition, DockerBuildJobDefinition } from "../../types/jobDefinition";
4
3
  import type { CatladderJob } from "../../types/jobs";
5
- export declare const createComponentBuildJobs: (context: ComponentContext, definitions: {
4
+ export declare const createComponentBuildJobs: (context: ComponentContextWithBuild, definitions: {
6
5
  appBuild?: AppBuildJobDefinition;
7
6
  dockerBuild: DockerBuildJobDefinition;
8
7
  }) => CatladderJob[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/base/index.ts"],"names":[],"mappings":";;;AAAA,4CAAoD;AAEpD,iDAI6B;AAM7B,sCAA0E;AAC1E,kCAA6C;AAC7C,2CAAiD;AACjD,2DAAwD;AAEjD,MAAM,wBAAwB,GAAG,CACtC,OAAyB,EACzB,WAGC,EACe,EAAE;;IAClB,OAAO;QACL,GAAG,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAA,2CAAiC,EAAC,OAAO,CAAC;YACpE,CAAC,CAAC,CAAC,IAAA,qCAAiB,EAAC,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;YACpD,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,IAAA,4BAAmB,EAAC,OAAO,CAAC;YAC9B,CAAC,CAAC;gBACE,IAAA,iCAAwB,EAAC,OAAO,EAAE;oBAChC,GAAG,WAAW,CAAC,WAAW;oBAC1B,KAAK,EAAE;wBACL,GAAG,CAAC,MAAA,WAAW,CAAC,WAAW,CAAC,KAAK,mCAAI,EAAE,CAAC;wBACxC,GAAG,CAAC,WAAW,CAAC,QAAQ;4BACxB,IAAA,2CAAiC,EAAC,OAAO,CAAC;4BACxC,CAAC,CAAC,CAAC,8BAAkB,CAAC;4BAC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C,CAAC;gBACE,IAAA,iCAAwB,EAAC,OAAO,EAAE;oBAChC,GAAG,WAAW,CAAC,WAAW;oBAC1B,KAAK,EAAE;wBACL,GAAG,CAAC,MAAA,WAAW,CAAC,WAAW,CAAC,KAAK,mCAAI,EAAE,CAAC;wBACxC,GAAG,CAAC,WAAW,CAAC,QAAQ;4BACxB,IAAA,2CAAiC,EAAC,OAAO,CAAC;4BACxC,CAAC,CAAC,CAAC,8BAAkB,CAAC;4BACtB,CAAC,CAAC,IAAA,2CAAiC,EAAC,OAAO,CAAC;gCAC1C,CAAC,CAAC;oCACE;wCACE,GAAG,EAAE,8BAAkB;wCACvB,SAAS,EAAE,IAAI;wCACf,aAAa,EAAE,OAAO,CAAC,KAAK,CAAC,aAAa;qCAC3C;iCACF;gCACH,CAAC,CAAC,EAAE,CAAC;qBACV;iBACF,CAAC;aACH;YACH,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,IAAA,sBAAe,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAA,yBAAkB,EAAC,OAAO,CAAC,CAAC,CAAC;KACnE,CAAC;AACJ,CAAC,CAAC;AAnCW,QAAA,wBAAwB,4BAmCnC;AAEK,MAAM,wBAAwB,GAAG,CACtC,OAAyB,EACzB,WAEC,EACe,EAAE;IAClB,OAAO,WAAW,CAAC,QAAQ;QACzB,CAAC,CAAC,CAAC,IAAA,qCAAiB,EAAC,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;QACpD,CAAC,CAAC,EAAE,CAAC;AACT,CAAC,CAAC;AATW,QAAA,wBAAwB,4BASnC"}
@@ -15,10 +15,12 @@ const getAllCacheConfigsFromConfig = (context, configWithCache) => {
15
15
  // we would probably need to introduce a path to the right config property (build-->test or so)
16
16
  context.components.flatMap((componentContext) => {
17
17
  var _a;
18
- return (_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
19
- ...c,
20
- baseDir: componentContext.build.dir,
21
- }))) !== null && _a !== void 0 ? _a : [];
18
+ return componentContext.build.type !== "disabled"
19
+ ? ((_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
20
+ ...c,
21
+ baseDir: componentContext.build.dir,
22
+ }))) !== null && _a !== void 0 ? _a : [])
23
+ : [];
22
24
  })
23
25
  : []),
24
26
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"getAllCacheConfigsFromConfig.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/cache/getAllCacheConfigsFromConfig.ts"],"names":[],"mappings":";;;AACA,6CAAgD;AAEhD,uEAAoE;AAE7D,MAAM,4BAA4B,GAAG,CAC1C,OAAgB,EAChB,eAAgC,EACjB,EAAE;IACjB,OAAO;QACL,GAAG,CAAC,UAAU,IAAI,eAAe;YAC/B,CAAC,CAAC,IAAA,iDAAuB,EAAC,eAAe,CAAC,QAAQ,CAAC;YACnD,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,IAAA,mBAAW,EAAC,eAAe,CAAC,KAAK,CAAC;QACrC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;YAC9B,CAAC,CAAC,6DAA6D;gBAC7D,yDAAyD;gBACzD,+FAA+F;gBAC/F,OAAO,CAAC,UAAU,CAAC,OAAO,CACxB,CAAC,gBAAgB,EAAE,EAAE;;oBACnB,OAAA,MAAA,IAAA,mBAAW,EAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;wBAC3D,GAAG,CAAC;wBACJ,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG;qBACpC,CAAC,CAAC,mCAAI,EAAE,CAAA;iBAAA,CACZ;YACH,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,4BAA4B,gCAsBvC"}
1
+ {"version":3,"file":"getAllCacheConfigsFromConfig.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/cache/getAllCacheConfigsFromConfig.ts"],"names":[],"mappings":";;;AACA,6CAAgD;AAEhD,uEAAoE;AAE7D,MAAM,4BAA4B,GAAG,CAC1C,OAAgB,EAChB,eAAgC,EACjB,EAAE;IACjB,OAAO;QACL,GAAG,CAAC,UAAU,IAAI,eAAe;YAC/B,CAAC,CAAC,IAAA,iDAAuB,EAAC,eAAe,CAAC,QAAQ,CAAC;YACnD,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,IAAA,mBAAW,EAAC,eAAe,CAAC,KAAK,CAAC;QACrC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;YAC9B,CAAC,CAAC,6DAA6D;gBAC7D,yDAAyD;gBACzD,+FAA+F;gBAC/F,OAAO,CAAC,UAAU,CAAC,OAAO,CAAc,CAAC,gBAAgB,EAAE,EAAE;;oBAC3D,OAAA,gBAAgB,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU;wBACxC,CAAC,CAAC,CAAC,MAAA,IAAA,mBAAW,EAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;4BAC5D,GAAG,CAAC;4BACJ,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG;yBACpC,CAAC,CAAC,mCAAI,EAAE,CAAC;wBACZ,CAAC,CAAC,EAAE,CAAA;iBAAA,CACP;YACH,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC,CAAC;AAvBW,QAAA,4BAA4B,gCAuBvC"}