@catladder/pipeline 1.146.2 → 1.147.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.
- package/dist/build/base/createAppBuildJob.js +6 -6
- package/dist/build/base/writeBuildInfo.js +1 -1
- package/dist/build/base/writeDotEnv.js +1 -1
- package/dist/build/custom/__tests__/testJob.test.js +11 -14
- package/dist/build/custom/buildJob.js +5 -5
- package/dist/build/custom/testJob.js +5 -5
- package/dist/build/docker.d.ts +26 -9
- package/dist/build/docker.js +41 -20
- package/dist/build/node/buildJob.js +8 -8
- package/dist/build/node/cache.js +1 -1
- package/dist/build/node/meteor.js +6 -6
- package/dist/build/node/testJob.js +11 -11
- package/dist/build/rails/build.js +3 -3
- package/dist/build/rails/test.js +4 -4
- package/dist/build/sbom.js +2 -2
- package/dist/build/types.d.ts +34 -26
- package/dist/bundles/catladder-gitlab/index.js +2 -2
- package/dist/constants.js +1 -1
- package/dist/context/getLabels.js +1 -1
- package/dist/context/index.js +34 -12
- package/dist/deploy/base/deploy.js +9 -8
- package/dist/deploy/cloudRun/artifactsRegistry.d.ts +1 -5
- package/dist/deploy/cloudRun/artifactsRegistry.js +8 -9
- package/dist/deploy/cloudRun/cloudRunRevisions.js +4 -5
- package/dist/deploy/cloudRun/createJobs/cloudRunServices.js +1 -1
- package/dist/deploy/cloudRun/createJobs/common.d.ts +4 -4
- package/dist/deploy/cloudRun/createJobs/common.js +2 -1
- package/dist/deploy/cloudRun/createJobs/index.js +2 -4
- package/dist/deploy/custom/deployJob.js +7 -10
- package/dist/deploy/dockerTag/deployJob.js +3 -5
- package/dist/deploy/kubernetes/cloudSql/index.js +11 -9
- package/dist/deploy/kubernetes/deployJob.js +4 -7
- package/dist/deploy/kubernetes/kubeEnv.js +2 -1
- package/dist/deploy/kubernetes/kubeValues.js +10 -10
- package/dist/deploy/kubernetes/mongodb.js +11 -11
- package/dist/deploy/sbom.js +1 -1
- package/dist/deploy/types/index.d.ts +1 -1
- package/dist/deploy/types/index.js +1 -1
- package/dist/deploy/utils.js +2 -1
- package/dist/pipeline/createJobsForComponent.js +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.d.ts +13 -1
- package/examples/__snapshots__/cloud-run-storybook.ts.snap +1687 -0
- package/examples/__snapshots__/cloud-run-with-ngnix.ts.snap +1971 -0
- package/examples/cloud-run-storybook.ts +24 -0
- package/examples/cloud-run-with-ngnix.ts +24 -0
- package/package.json +1 -1
- package/src/build/base/createAppBuildJob.ts +7 -7
- package/src/build/base/writeBuildInfo.ts +1 -1
- package/src/build/base/writeDotEnv.ts +1 -1
- package/src/build/custom/__tests__/testJob.test.ts +5 -8
- package/src/build/custom/buildJob.ts +6 -9
- package/src/build/custom/testJob.ts +5 -5
- package/src/build/docker.ts +68 -24
- package/src/build/node/buildJob.ts +12 -12
- package/src/build/node/cache.ts +1 -1
- package/src/build/node/meteor.ts +11 -17
- package/src/build/node/testJob.ts +14 -14
- package/src/build/rails/build.ts +3 -3
- package/src/build/rails/test.ts +4 -4
- package/src/build/sbom.ts +3 -3
- package/src/build/types.ts +53 -38
- package/src/context/getLabels.ts +1 -1
- package/src/context/index.ts +21 -5
- package/src/deploy/base/deploy.ts +8 -14
- package/src/deploy/cloudRun/artifactsRegistry.ts +5 -10
- package/src/deploy/cloudRun/cloudRunRevisions.ts +3 -5
- package/src/deploy/cloudRun/createJobs/cloudRunServices.ts +1 -1
- package/src/deploy/cloudRun/createJobs/common.ts +5 -5
- package/src/deploy/cloudRun/createJobs/index.ts +1 -4
- package/src/deploy/custom/deployJob.ts +4 -6
- package/src/deploy/dockerTag/deployJob.ts +2 -5
- package/src/deploy/kubernetes/cloudSql/index.ts +7 -4
- package/src/deploy/kubernetes/deployJob.ts +1 -4
- package/src/deploy/kubernetes/kubeEnv.ts +1 -1
- package/src/deploy/kubernetes/kubeValues.ts +3 -3
- package/src/deploy/kubernetes/mongodb.ts +6 -6
- package/src/deploy/sbom.ts +1 -2
- package/src/deploy/types/index.ts +2 -2
- package/src/deploy/utils.ts +1 -1
- package/src/pipeline/createJobsForComponent.ts +6 -10
- package/src/types/config.ts +3 -1
- package/src/types/context.ts +16 -1
package/dist/build/types.d.ts
CHANGED
|
@@ -51,27 +51,6 @@ export type BuildConfigBase = {
|
|
|
51
51
|
* define the build command
|
|
52
52
|
*/
|
|
53
53
|
buildCommand?: string | string[] | null;
|
|
54
|
-
/**
|
|
55
|
-
* customize docker build
|
|
56
|
-
*/
|
|
57
|
-
docker?: {
|
|
58
|
-
/**
|
|
59
|
-
* Custom Dockerfile lines integrated in the generated Dockerfile before the standard build steps.
|
|
60
|
-
*
|
|
61
|
-
* - [runner-images/docker-build/scripts/ensureNodeDockerfile](https://git.panter.ch/catladder/catladder/-/tree/main/runner-images/docker-build/scripts/ensureNodeDockerfile)
|
|
62
|
-
* - [runner-images/docker-build/scripts/ensureNginxDockerfile](https://git.panter.ch/catladder/catladder/-/tree/main/runner-images/docker-build/scripts/ensureNginxDockerfile)
|
|
63
|
-
* - [runner-images/docker-build/scripts/ensureMeteorDockerfile](https://git.panter.ch/catladder/catladder/-/tree/main/runner-images/docker-build/scripts/ensureMeteorDockerfile)
|
|
64
|
-
*/
|
|
65
|
-
additionsBegin?: string[];
|
|
66
|
-
/**
|
|
67
|
-
* Custom Dockerfile lines integrated in the generated Dockerfile after the standard build steps.
|
|
68
|
-
*
|
|
69
|
-
* - [runner-images/docker-build/scripts/ensureNodeDockerfile](https://git.panter.ch/catladder/catladder/-/tree/main/runner-images/docker-build/scripts/ensureNodeDockerfile)
|
|
70
|
-
* - [runner-images/docker-build/scripts/ensureNginxDockerfile](https://git.panter.ch/catladder/catladder/-/tree/main/runner-images/docker-build/scripts/ensureNginxDockerfile)
|
|
71
|
-
* - [runner-images/docker-build/scripts/ensureMeteorDockerfile](https://git.panter.ch/catladder/catladder/-/tree/main/runner-images/docker-build/scripts/ensureMeteorDockerfile)
|
|
72
|
-
*/
|
|
73
|
-
additionsEnd?: string[];
|
|
74
|
-
};
|
|
75
54
|
/**
|
|
76
55
|
* customize lint, set false to disable
|
|
77
56
|
*/
|
|
@@ -116,10 +95,12 @@ export type BuildConfigNodeBase = BuildConfigBase & {
|
|
|
116
95
|
};
|
|
117
96
|
export type BuildConfigNode = {
|
|
118
97
|
type: "node";
|
|
98
|
+
docker?: Omit<BuildConfigDockerBuiltInNode, "type"> | BuildConfigDocker;
|
|
119
99
|
} & BuildConfigNodeBase;
|
|
120
100
|
export type BuildConfigNodeStatic = BuildConfigNodeBase & {
|
|
121
101
|
type: "node-static";
|
|
122
102
|
startCommand?: never;
|
|
103
|
+
docker?: Omit<BuildConfigDockerBuiltInNgninx, "type"> | BuildConfigDocker;
|
|
123
104
|
};
|
|
124
105
|
export type BuildConfigMeteor = BuildConfigNodeBase & {
|
|
125
106
|
type: "meteor";
|
|
@@ -128,18 +109,44 @@ export type BuildConfigMeteor = BuildConfigNodeBase & {
|
|
|
128
109
|
* This is only required if you have custom scripts in your image
|
|
129
110
|
*/
|
|
130
111
|
installScripts?: boolean;
|
|
112
|
+
docker?: Omit<BuildConfigDockerBuiltInMeteor, "type"> | BuildConfigDocker;
|
|
113
|
+
};
|
|
114
|
+
type BuildConfigDockerWithAdditions = {
|
|
115
|
+
/**
|
|
116
|
+
* Custom Dockerfile lines integrated in the generated Dockerfile before the standard build steps.
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
additionsBegin?: string[];
|
|
120
|
+
/**
|
|
121
|
+
* Custom Dockerfile lines integrated in the generated Dockerfile after the standard build steps.
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
additionsEnd?: string[];
|
|
131
125
|
};
|
|
132
|
-
|
|
126
|
+
type BuildConfigDockerBuiltInNode = {
|
|
127
|
+
type: "node";
|
|
128
|
+
} & BuildConfigDockerWithAdditions;
|
|
129
|
+
type BuildConfigDockerBuiltInMeteor = {
|
|
130
|
+
type: "meteor";
|
|
131
|
+
} & BuildConfigDockerWithAdditions;
|
|
132
|
+
type BuildConfigDockerBuiltInNgninx = {
|
|
133
133
|
/**
|
|
134
134
|
* use the built-in nginx image for simple static apps
|
|
135
135
|
*/
|
|
136
136
|
type: "nginx";
|
|
137
|
-
}
|
|
137
|
+
} & BuildConfigDockerWithAdditions;
|
|
138
|
+
type BuildConfigDockerBuiltIn = BuildConfigDockerBuiltInNgninx | BuildConfigDockerBuiltInNode | BuildConfigDockerBuiltInMeteor;
|
|
139
|
+
type BuildConfigDockerCustom = {
|
|
138
140
|
/**
|
|
139
141
|
* custom docker build, expect that a Dockerfile in your directory
|
|
140
142
|
*/
|
|
141
143
|
type: "custom";
|
|
142
|
-
}
|
|
144
|
+
};
|
|
145
|
+
export type BuildConfigDocker = BuildConfigDockerBuiltIn | BuildConfigDockerCustom;
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated this type is no longer used. Use {@link BuildConfigDocker} instead.
|
|
148
|
+
*/
|
|
149
|
+
export type BuildConfigCustomDocker = BuildConfigDockerCustom | BuildConfigDockerBuiltInNgninx;
|
|
143
150
|
export type BuildConfigCustom = Omit<BuildConfigBase, "lint" | "test" | "audit"> & {
|
|
144
151
|
type: "custom";
|
|
145
152
|
jobImage: GitlabJobImage;
|
|
@@ -147,7 +154,7 @@ export type BuildConfigCustom = Omit<BuildConfigBase, "lint" | "test" | "audit">
|
|
|
147
154
|
* {@link Services}s used in lint, test, audit, and build jobs.
|
|
148
155
|
*/
|
|
149
156
|
jobServices?: Services;
|
|
150
|
-
docker:
|
|
157
|
+
docker: BuildConfigDocker;
|
|
151
158
|
/**
|
|
152
159
|
* custom lint, disabled when not set
|
|
153
160
|
*/
|
|
@@ -227,4 +234,5 @@ export declare const isOfBuildType: <T extends ("node" | "node-static" | "storyb
|
|
|
227
234
|
type: T[number];
|
|
228
235
|
}> | Extract<BuildConfigRails, {
|
|
229
236
|
type: T[number];
|
|
230
|
-
}>;
|
|
237
|
+
}>;
|
|
238
|
+
export {};
|