polyci 0.0.3 → 0.0.4
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/main.js +10 -10
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -111,8 +111,8 @@ function appendModuleBuildJob(lines, module, branchRule) {
|
|
|
111
111
|
lines.push(`${module.jobId}_build:`);
|
|
112
112
|
lines.push(" stage: build");
|
|
113
113
|
lines.push(" rules:");
|
|
114
|
-
lines.push("
|
|
115
|
-
lines.push(`
|
|
114
|
+
lines.push(" - changes:");
|
|
115
|
+
lines.push(` - ${module.modulePath}/**/*`);
|
|
116
116
|
lines.push(" image: $IMAGE_NODE");
|
|
117
117
|
lines.push(" variables:");
|
|
118
118
|
lines.push(` MODULE_NAME: ${module.moduleName}`);
|
|
@@ -132,8 +132,8 @@ function appendModuleTestJob(lines, module, branchRule) {
|
|
|
132
132
|
lines.push(`${module.jobId}_test:`);
|
|
133
133
|
lines.push(" stage: test");
|
|
134
134
|
lines.push(" rules:");
|
|
135
|
-
lines.push("
|
|
136
|
-
lines.push(`
|
|
135
|
+
lines.push(" - changes:");
|
|
136
|
+
lines.push(` - ${module.modulePath}/**/*`);
|
|
137
137
|
lines.push(" needs:");
|
|
138
138
|
lines.push(` - job: ${module.jobId}_build`);
|
|
139
139
|
lines.push(" image: $IMAGE_LINUX");
|
|
@@ -150,8 +150,8 @@ function appendModuleReleaseJob(lines, module, branchRule) {
|
|
|
150
150
|
lines.push(`${module.jobId}_release:`);
|
|
151
151
|
lines.push(" stage: release");
|
|
152
152
|
lines.push(" rules:");
|
|
153
|
-
lines.push("
|
|
154
|
-
lines.push(`
|
|
153
|
+
lines.push(" - changes:");
|
|
154
|
+
lines.push(` - ${module.modulePath}/**/*`);
|
|
155
155
|
lines.push(" needs:");
|
|
156
156
|
lines.push(` - job: ${module.jobId}_build`);
|
|
157
157
|
lines.push(` - job: ${module.jobId}_test`);
|
|
@@ -260,8 +260,8 @@ function appendModulePublishJob(lines, module, branchRule) {
|
|
|
260
260
|
lines.push(`${module.jobId}_publish:`);
|
|
261
261
|
lines.push(" stage: publish");
|
|
262
262
|
lines.push(" rules:");
|
|
263
|
-
lines.push("
|
|
264
|
-
lines.push(`
|
|
263
|
+
lines.push(" - changes:");
|
|
264
|
+
lines.push(` - ${module.modulePath}/**/*`);
|
|
265
265
|
lines.push(" needs:");
|
|
266
266
|
lines.push(` - job: ${module.jobId}_test`);
|
|
267
267
|
lines.push(" - job: release_and_tag");
|
|
@@ -288,8 +288,8 @@ function appendModuleDeployJob(lines, module, branchRule) {
|
|
|
288
288
|
lines.push(`${module.jobId}_deploy:`);
|
|
289
289
|
lines.push(" stage: deploy");
|
|
290
290
|
lines.push(" rules:");
|
|
291
|
-
lines.push("
|
|
292
|
-
lines.push(`
|
|
291
|
+
lines.push(" - changes:");
|
|
292
|
+
lines.push(` - ${module.modulePath}/**/*`);
|
|
293
293
|
lines.push(" needs:");
|
|
294
294
|
lines.push(` - job: ${module.jobId}_publish`);
|
|
295
295
|
lines.push(" image: $IMAGE_COMPOSE");
|