@catladder/pipeline 1.111.0 → 1.111.2

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.
@@ -8,7 +8,14 @@ export declare const getDockerImageVariables: (context: Context) => {
8
8
  DOCKER_IMAGE: string;
9
9
  DOCKER_IMAGE_TAG: string;
10
10
  };
11
- export declare const requiresDockerBuild: (context: Context) => boolean;
11
+ /**
12
+ * Weather the context requires a docker build
13
+ */
14
+ export declare const requiresDockerBuild: ({
15
+ componentConfig: {
16
+ deploy
17
+ }
18
+ }: Context) => boolean;
12
19
  export declare const getDockerBuildVariables: (context: Context) => {
13
20
  DOCKER_REGISTRY: string;
14
21
  DOCKER_REGISTRY_IMAGE_PATH: string;
@@ -71,21 +71,12 @@ var getDockerImageVariables = function (context) {
71
71
  };
72
72
  };
73
73
  exports.getDockerImageVariables = getDockerImageVariables;
74
- var requiresDockerBuild = function (context) {
75
- var deployConfig = context.componentConfig.deploy;
76
- if ((0, deploy_1.isOfDeployType)(deployConfig, "kubernetes")) {
77
- return true;
78
- }
79
- if ((0, deploy_1.isOfDeployType)(deployConfig, "google-cloudrun")) {
80
- return true;
81
- }
82
- if ((0, deploy_1.isOfDeployType)(deployConfig, "custom") && deployConfig.requiresDocker) {
83
- return true;
84
- }
85
- if ((0, deploy_1.isOfDeployType)(deployConfig, "dockerTag")) {
86
- return true;
87
- }
88
- return false;
74
+ /**
75
+ * Weather the context requires a docker build
76
+ */
77
+ var requiresDockerBuild = function (_a) {
78
+ var deploy = _a.componentConfig.deploy;
79
+ return (0, deploy_1.isOfDeployType)(deploy, "kubernetes", "google-cloudrun", "dockerTag") || (0, deploy_1.isOfDeployType)(deploy, "custom") && deploy.requiresDocker;
89
80
  };
90
81
  exports.requiresDockerBuild = requiresDockerBuild;
91
82
  var getDockerBaseVariables = function () {
@@ -41,6 +41,8 @@ var docker_1 = require("../docker");
41
41
  var types_1 = require("../types");
42
42
  var cache_1 = require("./cache");
43
43
  var yarn_1 = require("./yarn");
44
+ var sbom_1 = require("../../deploy/sbom");
45
+ var sbom_2 = require("../sbom");
44
46
  var getMeteorCache = function (context) {
45
47
  return [{
46
48
  key: context.componentName + "meteor-build-cache",
@@ -65,12 +67,12 @@ var createMeteorBuildJobs = function (context) {
65
67
  paths: [context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/dist"]
66
68
  }
67
69
  }) : null;
68
- return __spreadArray(__spreadArray([], __read(appBuildJob ? [appBuildJob] : []), false), [(0, docker_1.createDockerBuildJobDefault)(context, {
70
+ return __spreadArray(__spreadArray(__spreadArray([], __read(appBuildJob ? [appBuildJob] : []), false), [(0, docker_1.createDockerBuildJobDefault)(context, {
69
71
  script: ["ensureMeteorDockerfile"],
70
72
  variables: {
71
73
  METEOR_INSTALL_SCRIPTS: buildConfig.installScripts ? "true" : ""
72
74
  },
73
75
  needs: appBuildJob ? [constants_1.APP_BUILD_JOB_NAME] : []
74
- })], false);
76
+ })], false), __read((0, sbom_1.sbomDeactivated)(context) ? [] : [(0, sbom_2.createSbomBuildJob)(context)]), false);
75
77
  };
76
78
  exports.createMeteorBuildJobs = createMeteorBuildJobs;