@catladder/cli 0.0.0-main-864c4fe3 → 0.0.0-main-7219b03f

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 (65) hide show
  1. package/dist/bundles/catenv/index.js +156 -36
  2. package/dist/bundles/cli/index.js +156 -36
  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 +16 -6
  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/createJobs/healthCheck.d.ts +5 -0
  46. package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js +51 -0
  47. package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js.map +1 -0
  48. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +2 -0
  49. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +12 -0
  50. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js.map +1 -0
  51. package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +2 -2
  52. package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +3 -1
  53. package/dist/pipeline/src/deploy/kubernetes/kubeValues.js.map +1 -1
  54. package/dist/pipeline/src/deploy/sbom.js +4 -3
  55. package/dist/pipeline/src/deploy/sbom.js.map +1 -1
  56. package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +80 -0
  57. package/dist/pipeline/src/deploy/types/googleCloudRun.js +16 -0
  58. package/dist/pipeline/src/deploy/types/googleCloudRun.js.map +1 -1
  59. package/dist/pipeline/src/pipeline/createJobsForComponent.js +3 -1
  60. package/dist/pipeline/src/pipeline/createJobsForComponent.js.map +1 -1
  61. package/dist/pipeline/src/types/config.d.ts +1 -1
  62. package/dist/pipeline/src/types/context.d.ts +6 -1
  63. package/dist/pipeline/src/types/context.js.map +1 -1
  64. package/dist/tsconfig.tsbuildinfo +1 -1
  65. 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,21 @@ 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);
3983
+ const healthCheck_1 = __nccwpck_require__(193);
3963
3984
  const volumes_1 = __nccwpck_require__(847);
3964
3985
  const getServiceDeployScript = (context, service, nameSuffix) => {
3965
- var _a, _b, _c, _d, _e;
3986
+ var _a, _b, _c, _d, _e, _f;
3966
3987
  const commonDeployArgs = (0, common_1.getCommonDeployArgs)(context);
3967
3988
  const serviceName = (0, getServiceName_1.getServiceName)(context);
3968
3989
  const customConfig = service !== true ? service : undefined;
3969
3990
  const command = service !== true
3970
- ? ((_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : context.build.config.startCommand)
3991
+ ? ((_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : (context.build.type !== "disabled"
3992
+ ? context.build.config.startCommand
3993
+ : undefined))
3971
3994
  : undefined;
3972
3995
  const commandArray = command
3973
3996
  ? Array.isArray(command)
@@ -3978,14 +4001,16 @@ const getServiceDeployScript = (context, service, nameSuffix) => {
3978
4001
  const argsString = (0, createArgsString_1.createArgsString)({
3979
4002
  // command as empty string resets it to default (uses the image's entrypoint)
3980
4003
  command: commandArray ? '"' + commandArray.join(",") + '"' : '""',
4004
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.args),
3981
4005
  ...commonDeployArgs,
4006
+ image: (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.image) !== null && _b !== void 0 ? _b : commonDeployArgs.image,
3982
4007
  labels: (0, common_1.makeLabelString)({
3983
4008
  ...(0, getLabels_1.getLabels)(context),
3984
4009
  "cloud-run-service-name": fullServiceName,
3985
4010
  }),
3986
4011
  "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,
4012
+ "min-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _c !== void 0 ? _c : 0,
4013
+ "max-instances": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _d !== void 0 ? _d : 100,
3989
4014
  "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true,
3990
4015
  cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu,
3991
4016
  memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory,
@@ -3995,12 +4020,13 @@ const getServiceDeployScript = (context, service, nameSuffix) => {
3995
4020
  network: customConfig === null || customConfig === void 0 ? void 0 : customConfig.network,
3996
4021
  subnet: customConfig === null || customConfig === void 0 ? void 0 : customConfig.subnet,
3997
4022
  "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",
4023
+ "allow-unauthenticated": (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _e !== void 0 ? _e : true,
4024
+ ingress: (_f = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _f !== void 0 ? _f : "all",
4000
4025
  "cpu-boost": true,
4001
4026
  "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment,
4002
4027
  gpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.gpu,
4003
4028
  "gpu-type": customConfig === null || customConfig === void 0 ? void 0 : customConfig.gpuType,
4029
+ ...(0, healthCheck_1.healthCheckCliArgs)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.healthCheck),
4004
4030
  }, ...(0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service"));
4005
4031
  const version = requiresBeta(customConfig) ? "beta" : undefined;
4006
4032
  return `${(0, common_1.gcloudRunCmd)(version)} deploy ${fullServiceName} ${argsString}`;
@@ -4028,6 +4054,9 @@ const requiresBeta = (config) => {
4028
4054
  if (config.gpu && config.gpu > 0) {
4029
4055
  return true;
4030
4056
  }
4057
+ if (config.healthCheck !== undefined) {
4058
+ return true;
4059
+ }
4031
4060
  return false;
4032
4061
  };
4033
4062
  //# sourceMappingURL=cloudRunServices.js.map
@@ -4116,8 +4145,9 @@ exports.ENV_VARS_FILENAME = "____envvars.yaml";
4116
4145
  "use strict";
4117
4146
 
4118
4147
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4119
- exports.getCloudRunJobArgsArg = exports.getOnDeployExecuteScript = void 0;
4148
+ exports.getOnDeployExecuteScript = void 0;
4120
4149
  const createArgsString_1 = __nccwpck_require__(9598);
4150
+ const getJobOrServiceArgs_1 = __nccwpck_require__(1741);
4121
4151
  const jobName_1 = __nccwpck_require__(9626);
4122
4152
  const cloudRunJobs_1 = __nccwpck_require__(1224);
4123
4153
  const common_1 = __nccwpck_require__(3325);
@@ -4185,19 +4215,11 @@ const getJobRunScriptForExecute = (context, { jobName, config }) => {
4185
4215
  const argString = (0, createArgsString_1.createArgsString)({
4186
4216
  ...commonArgs,
4187
4217
  wait: waitForCompletion === true ? true : undefined,
4188
- args: (0, exports.getCloudRunJobArgsArg)(config.args),
4218
+ args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(config.args),
4189
4219
  });
4190
4220
  const fullJobName = (0, jobName_1.getFullJobName)(context, jobName);
4191
4221
  return `${(0, common_1.gcloudRunCmd)()} jobs execute ${fullJobName.toString()} ${argString}`;
4192
4222
  };
4193
- const getCloudRunJobArgsArg = (args) => {
4194
- return args !== undefined
4195
- ? args.length > 0
4196
- ? args === null || args === void 0 ? void 0 : args.map((arg) => `"${arg}"`).join(",")
4197
- : ""
4198
- : undefined;
4199
- };
4200
- exports.getCloudRunJobArgsArg = getCloudRunJobArgsArg;
4201
4223
  //# sourceMappingURL=onDeploy.js.map
4202
4224
 
4203
4225
  /***/ }),
@@ -4437,6 +4459,64 @@ exports.getCloudRunStopScripts = getCloudRunStopScripts;
4437
4459
 
4438
4460
  /***/ }),
4439
4461
 
4462
+ /***/ 193:
4463
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
4464
+
4465
+ "use strict";
4466
+
4467
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
4468
+ exports.healthCheckCliArgs = void 0;
4469
+ const types_1 = __nccwpck_require__(5781);
4470
+ const PORT = 8080;
4471
+ function healthCheckCliArgs(healthCheck) {
4472
+ const shouldNotSetHealthCheck = healthCheck === undefined;
4473
+ if (shouldNotSetHealthCheck) {
4474
+ return undefined;
4475
+ }
4476
+ const shouldUseDefaultProbe = healthCheck === true;
4477
+ if (shouldUseDefaultProbe) {
4478
+ return {
4479
+ "startup-probe": toArgValue(probeToKeyValuePairs(types_1.defaultStartupProbe)),
4480
+ "liveness-probe": toArgValue(probeToKeyValuePairs(types_1.defaultLivenessProbe)),
4481
+ };
4482
+ }
4483
+ return {
4484
+ "startup-probe": toArgValue(probeToKeyValuePairs(healthCheck.startupProbe)),
4485
+ "liveness-probe": healthCheck.livenessProbe
4486
+ ? toArgValue(probeToKeyValuePairs(healthCheck.livenessProbe))
4487
+ : "", // NOTE: empty string ("") removes liveness probe
4488
+ };
4489
+ }
4490
+ exports.healthCheckCliArgs = healthCheckCliArgs;
4491
+ function probeToKeyValuePairs(probe) {
4492
+ const sharedArgs = Object.entries({
4493
+ initialDelaySeconds: probe.initialDelaySeconds,
4494
+ timeoutSeconds: probe.timeoutSeconds,
4495
+ periodSeconds: probe.periodSeconds,
4496
+ failureThreshold: probe.failureThreshold,
4497
+ });
4498
+ switch (probe.type) {
4499
+ case "tcp":
4500
+ return [...sharedArgs, ["tcpSocket.port", PORT]];
4501
+ case "http1":
4502
+ return [
4503
+ ...sharedArgs,
4504
+ ["httpGet.port", PORT],
4505
+ ["httpGet.path", probe.path],
4506
+ // NOTE: headers are not supported by "gcloud beta" at the moment
4507
+ ];
4508
+ default:
4509
+ probe;
4510
+ return [];
4511
+ }
4512
+ }
4513
+ function toArgValue(keyValues) {
4514
+ return keyValues.map(([key, value]) => `${key}=${value}`).join(",");
4515
+ }
4516
+ //# sourceMappingURL=healthCheck.js.map
4517
+
4518
+ /***/ }),
4519
+
4440
4520
  /***/ 4069:
4441
4521
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
4442
4522
 
@@ -4742,6 +4822,25 @@ exports.gcloudServiceAccountLoginCommands = gcloudServiceAccountLoginCommands;
4742
4822
 
4743
4823
  /***/ }),
4744
4824
 
4825
+ /***/ 1741:
4826
+ /***/ ((__unused_webpack_module, exports) => {
4827
+
4828
+ "use strict";
4829
+
4830
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
4831
+ exports.getCloudRunServiceOrJobArgsArg = void 0;
4832
+ const getCloudRunServiceOrJobArgsArg = (args) => {
4833
+ return args !== undefined
4834
+ ? args.length > 0
4835
+ ? args === null || args === void 0 ? void 0 : args.map((arg) => `"${arg}"`).join(",")
4836
+ : ""
4837
+ : undefined;
4838
+ };
4839
+ exports.getCloudRunServiceOrJobArgsArg = getCloudRunServiceOrJobArgsArg;
4840
+ //# sourceMappingURL=getJobOrServiceArgs.js.map
4841
+
4842
+ /***/ }),
4843
+
4745
4844
  /***/ 8128:
4746
4845
  /***/ ((__unused_webpack_module, exports) => {
4747
4846
 
@@ -5284,7 +5383,9 @@ const createAppConfig = (context, application) => {
5284
5383
  const { healthRoute, command, ...rest } = application !== null && application !== void 0 ? application : {};
5285
5384
  return (0, utils_1.mergeWithMergingArrays)({
5286
5385
  host: context.environment.envVars.HOSTNAME,
5287
- command: command !== null && command !== void 0 ? command : context.build.config.startCommand,
5386
+ command: command !== null && command !== void 0 ? command : (context.build.type !== "disabled"
5387
+ ? context.build.config.startCommand
5388
+ : undefined),
5288
5389
  livenessProbe: {
5289
5390
  httpGet: {
5290
5391
  path: healthRoute !== null && healthRoute !== void 0 ? healthRoute : "__health",
@@ -5464,9 +5565,10 @@ exports.getDependencyTrackDeleteScript = exports.getDependencyTrackUploadScript
5464
5565
  const BashExpression_1 = __nccwpck_require__(2376);
5465
5566
  const sbom_1 = __nccwpck_require__(7038);
5466
5567
  const context_1 = __nccwpck_require__(1724);
5467
- const sbomDeactivated = (context) => (0, context_1.componentContextIsStandaloneBuild)(context) &&
5468
- context.build.config.type === "custom" &&
5469
- context.build.config.sbom === false;
5568
+ const sbomDeactivated = (context) => context.build.type === "disabled" ||
5569
+ ((0, context_1.componentContextIsStandaloneBuild)(context) &&
5570
+ context.build.config.type === "custom" &&
5571
+ context.build.config.sbom === false);
5470
5572
  exports.sbomDeactivated = sbomDeactivated;
5471
5573
  const getDependencyTrackUploadScript = (context) => {
5472
5574
  return (0, exports.sbomDeactivated)(context)
@@ -5516,6 +5618,22 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
5516
5618
  "use strict";
5517
5619
 
5518
5620
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5621
+ exports.defaultLivenessProbe = exports.defaultStartupProbe = void 0;
5622
+ exports.defaultStartupProbe = {
5623
+ type: "http1",
5624
+ path: "/__health",
5625
+ initialDelaySeconds: 5,
5626
+ timeoutSeconds: 1,
5627
+ periodSeconds: 30,
5628
+ failureThreshold: 3,
5629
+ };
5630
+ exports.defaultLivenessProbe = {
5631
+ ...exports.defaultStartupProbe,
5632
+ initialDelaySeconds: 0,
5633
+ timeoutSeconds: 10,
5634
+ periodSeconds: 30,
5635
+ failureThreshold: 3,
5636
+ };
5519
5637
  //# sourceMappingURL=googleCloudRun.js.map
5520
5638
 
5521
5639
  /***/ }),
@@ -5759,7 +5877,9 @@ const getCustomJobs = (context) => {
5759
5877
  return injectDefaultVarsInCustomJobs(context, rawJobs);
5760
5878
  };
5761
5879
  const createJobsForComponentContext = (context) => {
5762
- const buildJobs = build_1.BUILD_TYPES[context.build.buildType].jobs(context);
5880
+ const buildJobs = context.build.type !== "disabled"
5881
+ ? build_1.BUILD_TYPES[context.build.buildType].jobs(context)
5882
+ : [];
5763
5883
  const deployJobs = context.componentConfig.deploy !== false
5764
5884
  ? deploy_1.DEPLOY_TYPES[context.componentConfig.deploy.type].jobs(context)
5765
5885
  : [];