@catladder/pipeline 1.86.0 → 1.88.0

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.
@@ -64,6 +64,7 @@ var createCustomBuildJobs = function (context) {
64
64
  var appBuildJob = buildConfig.buildCommand !== null ? (0, createBuildJob_1.createBuildJob)(context, {
65
65
  image: buildConfig.jobImage,
66
66
  variables: __assign({}, RUNNER_BUILD_VARIABLES),
67
+ cache: buildConfig.jobCache,
67
68
  services: buildConfig.jobServices,
68
69
  script: __spreadArray([], __read((_a = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _a !== void 0 ? _a : []), false),
69
70
  artifacts: {
@@ -1,4 +1,5 @@
1
1
  import type { GitlabJobImage, GitlabJobService } from "../types";
2
+ import type { CatladderJob } from "../types/jobs";
2
3
  export declare type BuildConfigBase = {
3
4
  /**
4
5
  * command to run on the image to start the app (e.g. yarn start)
@@ -91,6 +92,10 @@ export declare type BuildConfigCustom = BuildConfigBase & {
91
92
  jobImage: string;
92
93
  jobServices?: GitlabJobService[];
93
94
  docker: BuildConfigCustomDocker;
95
+ /**
96
+ * customize cache for the job
97
+ */
98
+ jobCache?: CatladderJob["cache"];
94
99
  };
95
100
  export declare type BuildConfigRails = BuildConfigBase & {
96
101
  type: "rails";