@catladder/pipeline 3.42.0 → 3.43.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.
Files changed (70) hide show
  1. package/dist/build/node/testJob.js +1 -1
  2. package/dist/constants.js +1 -1
  3. package/dist/deploy/cloudRun/createJobs/cloudRunWorkerPools.d.ts +4 -0
  4. package/dist/deploy/cloudRun/createJobs/cloudRunWorkerPools.js +92 -0
  5. package/dist/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +13 -2
  6. package/dist/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +12 -2
  7. package/dist/deploy/cloudRun/createJobs/volumes.d.ts +1 -1
  8. package/dist/deploy/types/googleCloudRun.d.ts +45 -0
  9. package/dist/tsconfig.tsbuildinfo +1 -1
  10. package/examples/__snapshots__/automatic-releases.test.ts.snap +2 -2
  11. package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +2 -2
  12. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +2 -2
  13. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +2 -2
  14. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +2 -2
  15. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +2 -2
  16. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +2 -2
  17. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +10 -10
  18. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +2 -2
  19. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +2 -2
  20. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +2 -2
  21. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +2 -2
  22. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +2 -2
  23. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +2 -2
  24. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +2 -2
  25. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +2 -2
  26. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +2 -2
  27. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +2 -2
  28. package/examples/__snapshots__/cloud-run-session-affinity.test.ts.snap +2 -2
  29. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +2 -2
  30. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +2 -2
  31. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +2 -2
  32. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +2 -2
  33. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +6 -6
  34. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +4 -4
  35. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +2 -2
  36. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +8 -8
  37. package/examples/__snapshots__/cloud-run-worker-pool.test.ts.snap +1495 -0
  38. package/examples/__snapshots__/custom-deploy.test.ts.snap +2 -2
  39. package/examples/__snapshots__/custom-docker-file.test.ts.snap +2 -2
  40. package/examples/__snapshots__/custom-envs.test.ts.snap +4 -4
  41. package/examples/__snapshots__/custom-verify-job.test.ts.snap +2 -2
  42. package/examples/__snapshots__/git-submodule.test.ts.snap +2 -2
  43. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +2 -2
  44. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +2 -2
  45. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +4 -4
  46. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +2 -2
  47. package/examples/__snapshots__/local-dot-env.test.ts.snap +2 -2
  48. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +2 -2
  49. package/examples/__snapshots__/modify-generated-files.test.ts.snap +2 -2
  50. package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +2 -2
  51. package/examples/__snapshots__/multiline-var.test.ts.snap +6 -6
  52. package/examples/__snapshots__/native-app.test.ts.snap +4 -4
  53. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +2 -2
  54. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +2 -2
  55. package/examples/__snapshots__/override-secrets.test.ts.snap +2 -2
  56. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +6 -6
  57. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +4 -4
  58. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +2 -2
  59. package/examples/__snapshots__/workspace-api-www.test.ts.snap +2 -2
  60. package/examples/cloud-run-meteor-with-worker.ts +4 -5
  61. package/examples/cloud-run-with-worker.ts +5 -6
  62. package/examples/cloud-run-worker-pool.test.ts +12 -0
  63. package/examples/cloud-run-worker-pool.ts +42 -0
  64. package/package.json +1 -1
  65. package/src/build/node/testJob.ts +1 -1
  66. package/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.ts +75 -0
  67. package/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.ts +14 -1
  68. package/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.ts +4 -0
  69. package/src/deploy/cloudRun/createJobs/volumes.ts +1 -1
  70. package/src/deploy/types/googleCloudRun.ts +55 -0
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="www"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd www
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -412,7 +412,7 @@ before_script:
412
412
  - export APP_PATH="www"
413
413
  - collapseable_section_end "injectvars"
414
414
  - cd www
415
- - yarn npm audit --environment production --level critical
415
+ - yarn npm audit --environment production --severity critical
416
416
  rules:
417
417
  - when: never
418
418
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="www"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd www
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -511,7 +511,7 @@ before_script:
511
511
  - export APP_PATH="www"
512
512
  - collapseable_section_end "injectvars"
513
513
  - cd www
514
- - yarn npm audit --environment production --level critical
514
+ - yarn npm audit --environment production --severity critical
515
515
  rules:
516
516
  - when: never
517
517
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -131,7 +131,7 @@ before_script:
131
131
  - export APP_PATH="api"
132
132
  - collapseable_section_end "injectvars"
133
133
  - cd api
134
- - yarn npm audit --environment production --level critical
134
+ - yarn npm audit --environment production --severity critical
135
135
  rules:
136
136
  - when: never
137
137
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -311,7 +311,7 @@ before_script:
311
311
  - export APP_PATH="api"
312
312
  - collapseable_section_end "injectvars"
313
313
  - cd api
314
- - yarn npm audit --environment production --level critical
314
+ - yarn npm audit --environment production --severity critical
315
315
  rules:
316
316
  - when: never
317
317
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -490,7 +490,7 @@ before_script:
490
490
  - export APP_PATH="api"
491
491
  - collapseable_section_end "injectvars"
492
492
  - cd api
493
- - yarn npm audit --environment production --level critical
493
+ - yarn npm audit --environment production --severity critical
494
494
  rules:
495
495
  - when: never
496
496
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -669,7 +669,7 @@ before_script:
669
669
  - export APP_PATH="api"
670
670
  - collapseable_section_end "injectvars"
671
671
  - cd api
672
- - yarn npm audit --environment production --level critical
672
+ - yarn npm audit --environment production --severity critical
673
673
  rules:
674
674
  - when: never
675
675
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="www"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd www
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -557,7 +557,7 @@ before_script:
557
557
  - export APP_PATH="www"
558
558
  - collapseable_section_end "injectvars"
559
559
  - cd www
560
- - yarn npm audit --environment production --level critical
560
+ - yarn npm audit --environment production --severity critical
561
561
  rules:
562
562
  - when: never
563
563
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -116,7 +116,7 @@ before_script:
116
116
  - export APP_PATH="app"
117
117
  - collapseable_section_end "injectvars"
118
118
  - cd app
119
- - yarn npm audit --environment production --level critical
119
+ - yarn npm audit --environment production --severity critical
120
120
  rules:
121
121
  - when: never
122
122
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -503,7 +503,7 @@ before_script:
503
503
  - export APP_PATH="app"
504
504
  - collapseable_section_end "injectvars"
505
505
  - cd app
506
- - yarn npm audit --environment production --level critical
506
+ - yarn npm audit --environment production --severity critical
507
507
  rules:
508
508
  - when: never
509
509
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="api"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd api
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -584,7 +584,7 @@ before_script:
584
584
  - export APP_PATH="api"
585
585
  - collapseable_section_end "injectvars"
586
586
  - cd api
587
- - yarn npm audit --environment production --level critical
587
+ - yarn npm audit --environment production --severity critical
588
588
  rules:
589
589
  - when: never
590
590
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="api"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd api
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -589,7 +589,7 @@ before_script:
589
589
  - export APP_PATH="api"
590
590
  - collapseable_section_end "injectvars"
591
591
  - cd api
592
- - yarn npm audit --environment production --level critical
592
+ - yarn npm audit --environment production --severity critical
593
593
  rules:
594
594
  - when: never
595
595
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="api"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd api
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -575,7 +575,7 @@ before_script:
575
575
  - export APP_PATH="api"
576
576
  - collapseable_section_end "injectvars"
577
577
  - cd api
578
- - yarn npm audit --environment production --level critical
578
+ - yarn npm audit --environment production --severity critical
579
579
  rules:
580
580
  - when: never
581
581
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -1742,7 +1742,7 @@ before_script:
1742
1742
  - export APP_PATH="www"
1743
1743
  - collapseable_section_end "injectvars"
1744
1744
  - cd www
1745
- - yarn npm audit --environment production --level critical
1745
+ - yarn npm audit --environment production --severity critical
1746
1746
  rules:
1747
1747
  - when: never
1748
1748
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -2208,7 +2208,7 @@ before_script:
2208
2208
  - export APP_PATH="www"
2209
2209
  - collapseable_section_end "injectvars"
2210
2210
  - cd www
2211
- - yarn npm audit --environment production --level critical
2211
+ - yarn npm audit --environment production --severity critical
2212
2212
  rules:
2213
2213
  - when: never
2214
2214
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="api"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd api
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -620,7 +620,7 @@ before_script:
620
620
  - export APP_PATH="api"
621
621
  - collapseable_section_end "injectvars"
622
622
  - cd api
623
- - yarn npm audit --environment production --level critical
623
+ - yarn npm audit --environment production --severity critical
624
624
  rules:
625
625
  - when: never
626
626
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="api"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd api
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -484,7 +484,7 @@ before_script:
484
484
  - export APP_PATH="api"
485
485
  - collapseable_section_end "injectvars"
486
486
  - cd api
487
- - yarn npm audit --environment production --level critical
487
+ - yarn npm audit --environment production --severity critical
488
488
  rules:
489
489
  - when: never
490
490
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="app"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd app
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -599,7 +599,7 @@ before_script:
599
599
  - export APP_PATH="app"
600
600
  - collapseable_section_end "injectvars"
601
601
  - cd app
602
- - yarn npm audit --environment production --level critical
602
+ - yarn npm audit --environment production --severity critical
603
603
  rules:
604
604
  - when: never
605
605
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="api"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd api
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -295,7 +295,7 @@ before_script:
295
295
  - export APP_PATH="api"
296
296
  - collapseable_section_end "injectvars"
297
297
  - cd api
298
- - yarn npm audit --environment production --level critical
298
+ - yarn npm audit --environment production --severity critical
299
299
  rules:
300
300
  - when: never
301
301
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="api"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd api
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -295,7 +295,7 @@ before_script:
295
295
  - export APP_PATH="api"
296
296
  - collapseable_section_end "injectvars"
297
297
  - cd api
298
- - yarn npm audit --environment production --level critical
298
+ - yarn npm audit --environment production --severity critical
299
299
  rules:
300
300
  - when: never
301
301
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="app1"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd app1
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -550,7 +550,7 @@ before_script:
550
550
  - export APP_PATH="app1"
551
551
  - collapseable_section_end "injectvars"
552
552
  - cd app1
553
- - yarn npm audit --environment production --level critical
553
+ - yarn npm audit --environment production --severity critical
554
554
  rules:
555
555
  - when: never
556
556
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -1652,7 +1652,7 @@ before_script:
1652
1652
  - export APP_PATH="app2"
1653
1653
  - collapseable_section_end "injectvars"
1654
1654
  - cd app2
1655
- - yarn npm audit --environment production --level critical
1655
+ - yarn npm audit --environment production --severity critical
1656
1656
  rules:
1657
1657
  - when: never
1658
1658
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -2106,7 +2106,7 @@ before_script:
2106
2106
  - export APP_PATH="app2"
2107
2107
  - collapseable_section_end "injectvars"
2108
2108
  - cd app2
2109
- - yarn npm audit --environment production --level critical
2109
+ - yarn npm audit --environment production --severity critical
2110
2110
  rules:
2111
2111
  - when: never
2112
2112
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -3268,7 +3268,7 @@ before_script:
3268
3268
  - export APP_PATH="kube"
3269
3269
  - collapseable_section_end "injectvars"
3270
3270
  - cd kube
3271
- - yarn npm audit --environment production --level critical
3271
+ - yarn npm audit --environment production --severity critical
3272
3272
  rules:
3273
3273
  - when: never
3274
3274
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -3948,7 +3948,7 @@ before_script:
3948
3948
  - export APP_PATH="kube"
3949
3949
  - collapseable_section_end "injectvars"
3950
3950
  - cd kube
3951
- - yarn npm audit --environment production --level critical
3951
+ - yarn npm audit --environment production --severity critical
3952
3952
  rules:
3953
3953
  - when: never
3954
3954
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -117,7 +117,7 @@ before_script:
117
117
  - export LANG="en_US.UTF-8"
118
118
  - collapseable_section_end "injectvars"
119
119
  - cd app
120
- - yarn npm audit --environment production --level critical
120
+ - yarn npm audit --environment production --severity critical
121
121
  rules:
122
122
  - when: never
123
123
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -390,7 +390,7 @@ before_script:
390
390
  - export LANG="en_US.UTF-8"
391
391
  - collapseable_section_end "injectvars"
392
392
  - cd app
393
- - yarn npm audit --environment production --level critical
393
+ - yarn npm audit --environment production --severity critical
394
394
  rules:
395
395
  - when: never
396
396
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -986,7 +986,7 @@ before_script:
986
986
  - export APP_PATH="api"
987
987
  - collapseable_section_end "injectvars"
988
988
  - cd api
989
- - yarn npm audit --environment production --level critical
989
+ - yarn npm audit --environment production --severity critical
990
990
  rules:
991
991
  - when: never
992
992
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -1372,7 +1372,7 @@ before_script:
1372
1372
  - export APP_PATH="api"
1373
1373
  - collapseable_section_end "injectvars"
1374
1374
  - cd api
1375
- - yarn npm audit --environment production --level critical
1375
+ - yarn npm audit --environment production --severity critical
1376
1376
  rules:
1377
1377
  - when: never
1378
1378
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="www"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd www
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -502,7 +502,7 @@ before_script:
502
502
  - export APP_PATH="www"
503
503
  - collapseable_section_end "injectvars"
504
504
  - cd www
505
- - yarn npm audit --environment production --level critical
505
+ - yarn npm audit --environment production --severity critical
506
506
  rules:
507
507
  - when: never
508
508
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="www"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd www
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -504,7 +504,7 @@ before_script:
504
504
  - export APP_PATH="www"
505
505
  - collapseable_section_end "injectvars"
506
506
  - cd www
507
- - yarn npm audit --environment production --level critical
507
+ - yarn npm audit --environment production --severity critical
508
508
  rules:
509
509
  - when: never
510
510
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="app"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd app
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -507,7 +507,7 @@ before_script:
507
507
  - export APP_PATH="app"
508
508
  - collapseable_section_end "injectvars"
509
509
  - cd app
510
- - yarn npm audit --environment production --level critical
510
+ - yarn npm audit --environment production --severity critical
511
511
  rules:
512
512
  - when: never
513
513
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="app1"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd app1
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -527,7 +527,7 @@ before_script:
527
527
  - export APP_PATH="app1"
528
528
  - collapseable_section_end "injectvars"
529
529
  - cd app1
530
- - yarn npm audit --environment production --level critical
530
+ - yarn npm audit --environment production --severity critical
531
531
  rules:
532
532
  - when: never
533
533
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -1560,7 +1560,7 @@ before_script:
1560
1560
  - export APP_PATH="app2"
1561
1561
  - collapseable_section_end "injectvars"
1562
1562
  - cd app2
1563
- - yarn npm audit --environment production --level critical
1563
+ - yarn npm audit --environment production --severity critical
1564
1564
  rules:
1565
1565
  - when: never
1566
1566
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -1981,7 +1981,7 @@ before_script:
1981
1981
  - export APP_PATH="app2"
1982
1982
  - collapseable_section_end "injectvars"
1983
1983
  - cd app2
1984
- - yarn npm audit --environment production --level critical
1984
+ - yarn npm audit --environment production --severity critical
1985
1985
  rules:
1986
1986
  - when: never
1987
1987
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -3044,7 +3044,7 @@ before_script:
3044
3044
  - export APP_PATH="kube"
3045
3045
  - collapseable_section_end "injectvars"
3046
3046
  - cd kube
3047
- - yarn npm audit --environment production --level critical
3047
+ - yarn npm audit --environment production --severity critical
3048
3048
  rules:
3049
3049
  - when: never
3050
3050
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -3545,7 +3545,7 @@ before_script:
3545
3545
  - export APP_PATH="kube"
3546
3546
  - collapseable_section_end "injectvars"
3547
3547
  - cd kube
3548
- - yarn npm audit --environment production --level critical
3548
+ - yarn npm audit --environment production --severity critical
3549
3549
  rules:
3550
3550
  - when: never
3551
3551
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="api"
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd api
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -342,7 +342,7 @@ before_script:
342
342
  - export APP_PATH="api"
343
343
  - collapseable_section_end "injectvars"
344
344
  - cd api
345
- - yarn npm audit --environment production --level critical
345
+ - yarn npm audit --environment production --severity critical
346
346
  rules:
347
347
  - when: never
348
348
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -814,7 +814,7 @@ before_script:
814
814
  - export APP_PATH="www"
815
815
  - collapseable_section_end "injectvars"
816
816
  - cd www
817
- - yarn npm audit --environment production --level critical
817
+ - yarn npm audit --environment production --severity critical
818
818
  rules:
819
819
  - when: never
820
820
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -1042,7 +1042,7 @@ before_script:
1042
1042
  - export APP_PATH="www"
1043
1043
  - collapseable_section_end "injectvars"
1044
1044
  - cd www
1045
- - yarn npm audit --environment production --level critical
1045
+ - yarn npm audit --environment production --severity critical
1046
1046
  rules:
1047
1047
  - when: never
1048
1048
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="."
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd .
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -314,7 +314,7 @@ before_script:
314
314
  - export APP_PATH="."
315
315
  - collapseable_section_end "injectvars"
316
316
  - cd .
317
- - yarn npm audit --environment production --level critical
317
+ - yarn npm audit --environment production --severity critical
318
318
  rules:
319
319
  - when: never
320
320
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -115,7 +115,7 @@ before_script:
115
115
  - export APP_PATH="."
116
116
  - collapseable_section_end "injectvars"
117
117
  - cd .
118
- - yarn npm audit --environment production --level critical
118
+ - yarn npm audit --environment production --severity critical
119
119
  rules:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -312,7 +312,7 @@ before_script:
312
312
  - export APP_PATH="."
313
313
  - collapseable_section_end "injectvars"
314
314
  - cd .
315
- - yarn npm audit --environment production --level critical
315
+ - yarn npm audit --environment production --severity critical
316
316
  rules:
317
317
  - when: never
318
318
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -13,15 +13,14 @@ const config = {
13
13
  type: "google-cloudrun",
14
14
  projectId: "google-project-id",
15
15
  region: "europe-west6",
16
- additionalServices: {
16
+ // worker pools are like services, but they don't have a load balanced endpoint and don't support autoscaling.
17
+ // But they are 40% cheaper than services.
18
+ workerPools: {
17
19
  // its usually better to create another catladder component for the worker
18
- // but in some legacy cases it might be easier to add an extra service
20
+ // but in some legacy cases it might be easier to add service or worker pool
19
21
  // notice that you can't use different secrets on the worker, it will receive the same env vars as the normal service
20
22
  // you can specify extra vars though
21
23
  worker: {
22
- noCpuThrottling: true,
23
- maxInstances: 1,
24
- minInstances: 1,
25
24
  command: [
26
25
  "/bin/sh",
27
26
  "-c",
@@ -13,15 +13,14 @@ const config = {
13
13
  type: "google-cloudrun",
14
14
  projectId: "google-project-id",
15
15
  region: "europe-west6",
16
- additionalServices: {
16
+ // worker pools are like services, but they don't have a load balanced endpoint and don't support autoscaling.
17
+ // But they are 40% cheaper than services.
18
+ workerPools: {
17
19
  // its usually better to create another catladder component for the worker
18
- // but in some legacy cases it might be easier to add an extra service
20
+ // but in some legacy cases it might be easier to add service or worker pool
19
21
  // notice that you can't use different secrets on the worker, it will receive the same env vars as the normal service
20
22
  // you can specify extra vars though
21
23
  worker: {
22
- noCpuThrottling: true,
23
- maxInstances: 1,
24
- minInstances: 1,
25
24
  command: "yarn start:worker",
26
25
  },
27
26
  },
@@ -29,7 +28,7 @@ const config = {
29
28
  env: {
30
29
  review: {
31
30
  deploy: {
32
- additionalServices: {
31
+ workerPools: {
33
32
  worker: null, // disable the worker service on review
34
33
  },
35
34
  },
@@ -0,0 +1,12 @@
1
+ import { it, expect } from "vitest";
2
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
3
+ import config from "./cloud-run-worker-pool";
4
+
5
+ /**
6
+ * This test is auto-generated.
7
+ * Modifications will be overwritten on every `yarn test` run!
8
+ */
9
+
10
+ it("matches snapshot for cloud-run-worker-pool local pipeline YAML", async () => {
11
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
12
+ });
@@ -0,0 +1,42 @@
1
+ import type { Config } from "../src";
2
+
3
+ const config = {
4
+ appName: "test-app",
5
+ customerName: "pan",
6
+ components: {
7
+ api: {
8
+ dir: "api",
9
+ build: {
10
+ type: "node",
11
+ },
12
+ deploy: {
13
+ type: "google-cloudrun",
14
+ projectId: "google-project-id",
15
+ region: "europe-west6",
16
+ workerPools: {
17
+ worker: {
18
+ instances: 1, // is the default value
19
+ command: "yarn start:worker",
20
+ cpu: 1,
21
+ memory: "512Mi",
22
+ },
23
+ },
24
+ },
25
+ env: {
26
+ review: {
27
+ deploy: {
28
+ workerPools: {
29
+ worker: null, // disable the worker pool on review
30
+ },
31
+ },
32
+ },
33
+ },
34
+ },
35
+ },
36
+ } satisfies Config;
37
+
38
+ export default config;
39
+
40
+ export const information = {
41
+ title: "Cloud Run: Worker Pool",
42
+ };