@catladder/pipeline 3.25.0 → 3.27.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/custom/testJob.js +1 -2
- package/dist/build/node/testJob.js +1 -2
- package/dist/build/node/yarn.js +3 -2
- package/dist/build/rails/test.js +1 -2
- package/dist/constants.js +1 -1
- package/dist/deploy/types/googleCloudRun.d.ts +1 -1
- package/dist/pipeline/agent/createAgentReviewJob.js +1 -0
- package/dist/pipeline/agent/shared.d.ts +1 -1
- package/dist/pipeline/agent/shared.js +0 -1
- package/dist/pipeline/createMainPipeline.js +1 -0
- package/dist/pipeline/gitlab/cache.d.ts +9 -0
- package/dist/pipeline/gitlab/cache.js +47 -0
- package/dist/pipeline/gitlab/createGitlabJobs.js +7 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/jobs.d.ts +2 -3
- package/examples/__snapshots__/automatic-releases.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +133 -27
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +144 -32
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +21 -11
- package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +144 -32
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +423 -93
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +282 -62
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +141 -31
- package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +93 -22
- package/examples/__snapshots__/custom-deploy.test.ts.snap +141 -31
- package/examples/__snapshots__/custom-envs.test.ts.snap +328 -40
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +144 -32
- package/examples/__snapshots__/git-submodule.test.ts.snap +141 -31
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +141 -31
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +141 -31
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +282 -62
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +141 -31
- package/examples/__snapshots__/local-dot-env.test.ts.snap +141 -31
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +133 -27
- package/examples/__snapshots__/modify-generated-files.test.ts.snap +124 -20
- package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +124 -20
- package/examples/__snapshots__/multiline-var.test.ts.snap +423 -93
- package/examples/__snapshots__/native-app.test.ts.snap +277 -57
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +141 -31
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +141 -31
- package/examples/__snapshots__/override-secrets.test.ts.snap +141 -31
- package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +84 -22
- package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +84 -22
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +423 -93
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +260 -52
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +161 -43
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +161 -43
- package/package.json +1 -1
- package/src/build/custom/testJob.ts +0 -1
- package/src/build/node/testJob.ts +0 -1
- package/src/build/node/yarn.ts +3 -2
- package/src/build/rails/test.ts +0 -1
- package/src/deploy/types/googleCloudRun.ts +1 -1
- package/src/pipeline/agent/createAgentReviewJob.ts +1 -0
- package/src/pipeline/agent/shared.ts +2 -2
- package/src/pipeline/createMainPipeline.ts +1 -0
- package/src/pipeline/gitlab/cache.ts +49 -0
- package/src/pipeline/gitlab/createGitlabJobs.ts +7 -9
- package/src/types/jobs.ts +2 -3
|
@@ -103,7 +103,7 @@ before_script:
|
|
|
103
103
|
local section_title="\${1}"
|
|
104
104
|
echo -e "section_end:\`date +%s\`:\${section_title}\\r\\e[0K"
|
|
105
105
|
}
|
|
106
|
-
api 🛡 audit:
|
|
106
|
+
'api 🛡 audit | dev ':
|
|
107
107
|
stage: test
|
|
108
108
|
image: path/to/docker/jobs-default:the-version
|
|
109
109
|
variables:
|
|
@@ -120,9 +120,6 @@ api 🛡 audit:
|
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
122
122
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
123
|
-
- when: never
|
|
124
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
125
|
-
- if: $CI_MERGE_REQUEST_ID
|
|
126
123
|
needs: []
|
|
127
124
|
retry: &a1
|
|
128
125
|
max: 2
|
|
@@ -131,7 +128,7 @@ api 🛡 audit:
|
|
|
131
128
|
- stuck_or_timeout_failure
|
|
132
129
|
interruptible: true
|
|
133
130
|
allow_failure: true
|
|
134
|
-
api 👮 lint:
|
|
131
|
+
'api 👮 lint | dev ':
|
|
135
132
|
stage: test
|
|
136
133
|
image: path/to/docker/jobs-default:the-version
|
|
137
134
|
variables:
|
|
@@ -152,7 +149,7 @@ api 👮 lint:
|
|
|
152
149
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
153
150
|
- collapseable_section_end "nodeinstall"
|
|
154
151
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
155
|
-
- yarn install --immutable
|
|
152
|
+
- yarn install --immutable --inline-builds
|
|
156
153
|
- collapseable_section_end "yarninstall"
|
|
157
154
|
- yarn lint
|
|
158
155
|
cache:
|
|
@@ -168,13 +165,10 @@ api 👮 lint:
|
|
|
168
165
|
- when: never
|
|
169
166
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
170
167
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
171
|
-
- when: never
|
|
172
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
173
|
-
- if: $CI_MERGE_REQUEST_ID
|
|
174
168
|
needs: []
|
|
175
169
|
retry: *a1
|
|
176
170
|
interruptible: true
|
|
177
|
-
api 🧪 test:
|
|
171
|
+
'api 🧪 test | dev ':
|
|
178
172
|
stage: test
|
|
179
173
|
image: path/to/docker/jobs-testing-chrome:the-version
|
|
180
174
|
variables:
|
|
@@ -195,7 +189,7 @@ api 🧪 test:
|
|
|
195
189
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
196
190
|
- collapseable_section_end "nodeinstall"
|
|
197
191
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
198
|
-
- yarn install --immutable
|
|
192
|
+
- yarn install --immutable --inline-builds
|
|
199
193
|
- collapseable_section_end "yarninstall"
|
|
200
194
|
- yarn test
|
|
201
195
|
cache:
|
|
@@ -211,9 +205,6 @@ api 🧪 test:
|
|
|
211
205
|
- when: never
|
|
212
206
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
213
207
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
214
|
-
- when: never
|
|
215
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
216
|
-
- if: $CI_MERGE_REQUEST_ID
|
|
217
208
|
needs: []
|
|
218
209
|
retry: *a1
|
|
219
210
|
interruptible: true
|
|
@@ -262,7 +253,7 @@ api 🧪 test:
|
|
|
262
253
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
263
254
|
- collapseable_section_end "nodeinstall"
|
|
264
255
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
265
|
-
- yarn install --immutable
|
|
256
|
+
- yarn install --immutable --inline-builds
|
|
266
257
|
- collapseable_section_end "yarninstall"
|
|
267
258
|
- yarn build
|
|
268
259
|
cache:
|
|
@@ -314,6 +305,115 @@ api 🧪 test:
|
|
|
314
305
|
retry: *a1
|
|
315
306
|
interruptible: true
|
|
316
307
|
allow_failure: true
|
|
308
|
+
'api 🛡 audit | review ':
|
|
309
|
+
stage: test
|
|
310
|
+
image: path/to/docker/jobs-default:the-version
|
|
311
|
+
variables:
|
|
312
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
313
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
314
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
315
|
+
script:
|
|
316
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
317
|
+
- export APP_PATH="api"
|
|
318
|
+
- collapseable_section_end "injectvars"
|
|
319
|
+
- cd api
|
|
320
|
+
- yarn npm audit --environment production
|
|
321
|
+
rules:
|
|
322
|
+
- when: never
|
|
323
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
324
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
325
|
+
needs: []
|
|
326
|
+
retry: *a1
|
|
327
|
+
interruptible: true
|
|
328
|
+
allow_failure: true
|
|
329
|
+
'api 👮 lint | review ':
|
|
330
|
+
stage: test
|
|
331
|
+
image: path/to/docker/jobs-default:the-version
|
|
332
|
+
variables:
|
|
333
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
334
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
335
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
336
|
+
script:
|
|
337
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
338
|
+
- export APP_PATH="api"
|
|
339
|
+
- collapseable_section_end "injectvars"
|
|
340
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
341
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
342
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
343
|
+
- collapseable_section_end "nodeinstall"
|
|
344
|
+
- cd api
|
|
345
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
346
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
347
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
348
|
+
- collapseable_section_end "nodeinstall"
|
|
349
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
350
|
+
- yarn install --immutable --inline-builds
|
|
351
|
+
- collapseable_section_end "yarninstall"
|
|
352
|
+
- yarn lint
|
|
353
|
+
cache:
|
|
354
|
+
- key: api-yarn-mr$CI_MERGE_REQUEST_IID
|
|
355
|
+
policy: pull-push
|
|
356
|
+
paths:
|
|
357
|
+
- api/.yarn
|
|
358
|
+
fallback_keys:
|
|
359
|
+
- api-yarn
|
|
360
|
+
- key: api-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
361
|
+
policy: pull-push
|
|
362
|
+
paths:
|
|
363
|
+
- api/node_modules
|
|
364
|
+
fallback_keys:
|
|
365
|
+
- api-node-modules
|
|
366
|
+
rules:
|
|
367
|
+
- when: never
|
|
368
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
369
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
370
|
+
needs: []
|
|
371
|
+
retry: *a1
|
|
372
|
+
interruptible: true
|
|
373
|
+
'api 🧪 test | review ':
|
|
374
|
+
stage: test
|
|
375
|
+
image: path/to/docker/jobs-testing-chrome:the-version
|
|
376
|
+
variables:
|
|
377
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
378
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
379
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
380
|
+
script:
|
|
381
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
382
|
+
- export APP_PATH="api"
|
|
383
|
+
- collapseable_section_end "injectvars"
|
|
384
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
385
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
386
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
387
|
+
- collapseable_section_end "nodeinstall"
|
|
388
|
+
- cd api
|
|
389
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
390
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
391
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
392
|
+
- collapseable_section_end "nodeinstall"
|
|
393
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
394
|
+
- yarn install --immutable --inline-builds
|
|
395
|
+
- collapseable_section_end "yarninstall"
|
|
396
|
+
- yarn test
|
|
397
|
+
cache:
|
|
398
|
+
- key: api-yarn-mr$CI_MERGE_REQUEST_IID
|
|
399
|
+
policy: pull-push
|
|
400
|
+
paths:
|
|
401
|
+
- api/.yarn
|
|
402
|
+
fallback_keys:
|
|
403
|
+
- api-yarn
|
|
404
|
+
- key: api-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
405
|
+
policy: pull-push
|
|
406
|
+
paths:
|
|
407
|
+
- api/node_modules
|
|
408
|
+
fallback_keys:
|
|
409
|
+
- api-node-modules
|
|
410
|
+
rules:
|
|
411
|
+
- when: never
|
|
412
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
413
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
414
|
+
needs: []
|
|
415
|
+
retry: *a1
|
|
416
|
+
interruptible: true
|
|
317
417
|
'api 🔨 app | review ':
|
|
318
418
|
stage: build
|
|
319
419
|
image: path/to/docker/jobs-default:the-version
|
|
@@ -359,18 +459,22 @@ api 🧪 test:
|
|
|
359
459
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
360
460
|
- collapseable_section_end "nodeinstall"
|
|
361
461
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
362
|
-
- yarn install --immutable
|
|
462
|
+
- yarn install --immutable --inline-builds
|
|
363
463
|
- collapseable_section_end "yarninstall"
|
|
364
464
|
- yarn build
|
|
365
465
|
cache:
|
|
366
|
-
- key: api-yarn
|
|
466
|
+
- key: api-yarn-mr$CI_MERGE_REQUEST_IID
|
|
367
467
|
policy: pull-push
|
|
368
468
|
paths:
|
|
369
469
|
- api/.yarn
|
|
370
|
-
|
|
470
|
+
fallback_keys:
|
|
471
|
+
- api-yarn
|
|
472
|
+
- key: api-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
371
473
|
policy: pull-push
|
|
372
474
|
paths:
|
|
373
475
|
- api/node_modules
|
|
476
|
+
fallback_keys:
|
|
477
|
+
- api-node-modules
|
|
374
478
|
artifacts:
|
|
375
479
|
paths:
|
|
376
480
|
- api/__build_info.json
|
|
@@ -456,7 +560,7 @@ api 🧪 test:
|
|
|
456
560
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
457
561
|
- collapseable_section_end "nodeinstall"
|
|
458
562
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
459
|
-
- yarn install --immutable
|
|
563
|
+
- yarn install --immutable --inline-builds
|
|
460
564
|
- collapseable_section_end "yarninstall"
|
|
461
565
|
- yarn build
|
|
462
566
|
cache:
|
|
@@ -553,7 +657,7 @@ api 🧪 test:
|
|
|
553
657
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
554
658
|
- collapseable_section_end "nodeinstall"
|
|
555
659
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
556
|
-
- yarn install --immutable
|
|
660
|
+
- yarn install --immutable --inline-builds
|
|
557
661
|
- collapseable_section_end "yarninstall"
|
|
558
662
|
- yarn build
|
|
559
663
|
cache:
|