@catladder/pipeline 3.48.0 → 4.0.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 (95) hide show
  1. package/dist/build/index.d.ts +2 -2
  2. package/dist/build/node/buildJob.d.ts +3 -3
  3. package/dist/build/node/buildJob.js +185 -26
  4. package/dist/build/node/cache.d.ts +3 -3
  5. package/dist/build/node/cache.js +199 -36
  6. package/dist/build/node/index.d.ts +3 -3
  7. package/dist/build/node/index.js +151 -3
  8. package/dist/build/node/meteor.d.ts +1 -1
  9. package/dist/build/node/meteor.js +162 -27
  10. package/dist/build/node/testJob.d.ts +1 -1
  11. package/dist/build/node/testJob.js +174 -49
  12. package/dist/build/node/yarn.d.ts +2 -2
  13. package/dist/build/node/yarn.js +168 -21
  14. package/dist/constants.js +1 -1
  15. package/dist/context/createComponentContext.js +10 -12
  16. package/dist/context/createWorkspaceContext.js +29 -34
  17. package/dist/deploy/custom/deployJob.d.ts +1 -1
  18. package/dist/deploy/custom/deployJob.js +147 -23
  19. package/dist/deploy/index.d.ts +1 -1
  20. package/dist/pipeline/createAllJobs.js +30 -14
  21. package/dist/pipeline/createJobsForComponent.d.ts +1 -1
  22. package/dist/pipeline/createJobsForComponent.js +128 -4
  23. package/dist/pipeline/createJobsForWorkspace.d.ts +1 -1
  24. package/dist/pipeline/createJobsForWorkspace.js +127 -2
  25. package/dist/pipeline/yarn/yarnUtils.js +61 -1
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/dist/types/context.d.ts +3 -3
  28. package/examples/__snapshots__/automatic-releases.test.ts.snap +9 -13
  29. package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +9 -13
  30. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +9 -13
  31. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +9 -13
  32. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +9 -13
  33. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +9 -13
  34. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +9 -13
  35. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +9 -13
  36. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +9 -13
  37. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +9 -13
  38. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +9 -13
  39. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +9 -13
  40. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +9 -13
  41. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +9 -13
  42. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +9 -13
  43. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +9 -13
  44. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +9 -13
  45. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +9 -13
  46. package/examples/__snapshots__/cloud-run-session-affinity.test.ts.snap +9 -13
  47. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +9 -13
  48. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +9 -13
  49. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +9 -13
  50. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +9 -13
  51. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +18 -30
  52. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +14 -22
  53. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +9 -13
  54. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +9 -13
  55. package/examples/__snapshots__/cloud-run-worker-pool.test.ts.snap +9 -13
  56. package/examples/__snapshots__/custom-deploy.test.ts.snap +9 -13
  57. package/examples/__snapshots__/custom-docker-file.test.ts.snap +9 -13
  58. package/examples/__snapshots__/custom-envs.test.ts.snap +14 -22
  59. package/examples/__snapshots__/custom-verify-job.test.ts.snap +9 -13
  60. package/examples/__snapshots__/git-submodule.test.ts.snap +9 -13
  61. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +9 -13
  62. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +9 -13
  63. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +14 -22
  64. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +9 -13
  65. package/examples/__snapshots__/local-dot-env.test.ts.snap +9 -13
  66. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +9 -13
  67. package/examples/__snapshots__/modify-generated-files.test.ts.snap +9 -13
  68. package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +9 -13
  69. package/examples/__snapshots__/multiline-var.test.ts.snap +18 -30
  70. package/examples/__snapshots__/native-app.test.ts.snap +14 -22
  71. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +9 -13
  72. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +9 -13
  73. package/examples/__snapshots__/override-secrets.test.ts.snap +9 -13
  74. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +18 -30
  75. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +14 -22
  76. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +9 -13
  77. package/examples/__snapshots__/workspace-api-www.test.ts.snap +9 -13
  78. package/package.json +1 -1
  79. package/src/build/index.ts +6 -2
  80. package/src/build/node/buildJob.ts +26 -17
  81. package/src/build/node/cache.ts +18 -15
  82. package/src/build/node/index.ts +17 -9
  83. package/src/build/node/meteor.ts +16 -11
  84. package/src/build/node/testJob.ts +10 -6
  85. package/src/build/node/yarn.ts +10 -8
  86. package/src/context/createComponentContext.ts +6 -3
  87. package/src/context/createWorkspaceContext.ts +1 -1
  88. package/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.ts +3 -1
  89. package/src/deploy/custom/deployJob.ts +3 -3
  90. package/src/deploy/index.ts +1 -1
  91. package/src/pipeline/createAllJobs.ts +9 -7
  92. package/src/pipeline/createJobsForComponent.ts +6 -6
  93. package/src/pipeline/createJobsForWorkspace.ts +3 -3
  94. package/src/pipeline/yarn/yarnUtils.ts +34 -0
  95. package/src/types/context.ts +3 -3
@@ -156,7 +156,7 @@ before_script:
156
156
  - app/.yarn
157
157
  - key: app-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - app/node_modules
161
161
  - app/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - app/.yarn
198
198
  - key: app-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - app/node_modules
202
- - app/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -548,7 +546,7 @@ before_script:
548
546
  - app-yarn
549
547
  - key: app-node-modules-mr$CI_MERGE_REQUEST_IID
550
548
  policy: pull-push
551
- paths:
549
+ paths: &a3
552
550
  - app/node_modules
553
551
  - app/.yarn/install-state.gz
554
552
  fallback_keys:
@@ -593,9 +591,7 @@ before_script:
593
591
  - app-yarn
594
592
  - key: app-node-modules-mr$CI_MERGE_REQUEST_IID
595
593
  policy: pull-push
596
- paths:
597
- - app/node_modules
598
- - app/.yarn/install-state.gz
594
+ paths: *a3
599
595
  fallback_keys:
600
596
  - app-node-modules
601
597
  rules:
@@ -1472,13 +1468,13 @@ create release:
1472
1468
  after_script:
1473
1469
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1474
1470
  rules:
1475
- - &a2
1471
+ - &a4
1476
1472
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1477
1473
  when: never
1478
- - &a3
1474
+ - &a5
1479
1475
  if: $CI_PIPELINE_SOURCE == "trigger"
1480
1476
  when: never
1481
- - &a4
1477
+ - &a6
1482
1478
  if: $CI_PIPELINE_SOURCE == "schedule"
1483
1479
  when: never
1484
1480
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1493,9 +1489,9 @@ create release:
1493
1489
  after_script:
1494
1490
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1495
1491
  rules:
1496
- - *a2
1497
- - *a3
1498
1492
  - *a4
1493
+ - *a5
1494
+ - *a6
1499
1495
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1500
1496
  when: manual
1501
1497
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - www/.yarn
157
157
  - key: www-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - www/node_modules
161
161
  - www/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - www/.yarn
198
198
  - key: www-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - www/node_modules
202
- - www/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -544,7 +542,7 @@ before_script:
544
542
  - www-yarn
545
543
  - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
546
544
  policy: pull-push
547
- paths:
545
+ paths: &a3
548
546
  - www/node_modules
549
547
  - www/.yarn/install-state.gz
550
548
  fallback_keys:
@@ -589,9 +587,7 @@ before_script:
589
587
  - www-yarn
590
588
  - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
591
589
  policy: pull-push
592
- paths:
593
- - www/node_modules
594
- - www/.yarn/install-state.gz
590
+ paths: *a3
595
591
  fallback_keys:
596
592
  - www-node-modules
597
593
  rules:
@@ -1456,13 +1452,13 @@ create release:
1456
1452
  after_script:
1457
1453
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1458
1454
  rules:
1459
- - &a2
1455
+ - &a4
1460
1456
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1461
1457
  when: never
1462
- - &a3
1458
+ - &a5
1463
1459
  if: $CI_PIPELINE_SOURCE == "trigger"
1464
1460
  when: never
1465
- - &a4
1461
+ - &a6
1466
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1467
1463
  when: never
1468
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1477,9 +1473,9 @@ create release:
1477
1473
  after_script:
1478
1474
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1479
1475
  rules:
1480
- - *a2
1481
- - *a3
1482
1476
  - *a4
1477
+ - *a5
1478
+ - *a6
1483
1479
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1484
1480
  when: manual
1485
1481
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - www/.yarn
157
157
  - key: www-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - www/node_modules
161
161
  - www/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - www/.yarn
198
198
  - key: www-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - www/node_modules
202
- - www/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -544,7 +542,7 @@ before_script:
544
542
  - www-yarn
545
543
  - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
546
544
  policy: pull-push
547
- paths:
545
+ paths: &a3
548
546
  - www/node_modules
549
547
  - www/.yarn/install-state.gz
550
548
  fallback_keys:
@@ -589,9 +587,7 @@ before_script:
589
587
  - www-yarn
590
588
  - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
591
589
  policy: pull-push
592
- paths:
593
- - www/node_modules
594
- - www/.yarn/install-state.gz
590
+ paths: *a3
595
591
  fallback_keys:
596
592
  - www-node-modules
597
593
  rules:
@@ -1456,13 +1452,13 @@ create release:
1456
1452
  after_script:
1457
1453
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1458
1454
  rules:
1459
- - &a2
1455
+ - &a4
1460
1456
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1461
1457
  when: never
1462
- - &a3
1458
+ - &a5
1463
1459
  if: $CI_PIPELINE_SOURCE == "trigger"
1464
1460
  when: never
1465
- - &a4
1461
+ - &a6
1466
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1467
1463
  when: never
1468
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1477,9 +1473,9 @@ create release:
1477
1473
  after_script:
1478
1474
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1479
1475
  rules:
1480
- - *a2
1481
- - *a3
1482
1476
  - *a4
1477
+ - *a5
1478
+ - *a6
1483
1479
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1484
1480
  when: manual
1485
1481
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - www/.yarn
157
157
  - key: www-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - www/node_modules
161
161
  - www/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - www/.yarn
198
198
  - key: www-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - www/node_modules
202
- - www/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -544,7 +542,7 @@ before_script:
544
542
  - www-yarn
545
543
  - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
546
544
  policy: pull-push
547
- paths:
545
+ paths: &a3
548
546
  - www/node_modules
549
547
  - www/.yarn/install-state.gz
550
548
  fallback_keys:
@@ -589,9 +587,7 @@ before_script:
589
587
  - www-yarn
590
588
  - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
591
589
  policy: pull-push
592
- paths:
593
- - www/node_modules
594
- - www/.yarn/install-state.gz
590
+ paths: *a3
595
591
  fallback_keys:
596
592
  - www-node-modules
597
593
  rules:
@@ -1456,13 +1452,13 @@ create release:
1456
1452
  after_script:
1457
1453
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1458
1454
  rules:
1459
- - &a2
1455
+ - &a4
1460
1456
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1461
1457
  when: never
1462
- - &a3
1458
+ - &a5
1463
1459
  if: $CI_PIPELINE_SOURCE == "trigger"
1464
1460
  when: never
1465
- - &a4
1461
+ - &a6
1466
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1467
1463
  when: never
1468
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1477,9 +1473,9 @@ create release:
1477
1473
  after_script:
1478
1474
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1479
1475
  rules:
1480
- - *a2
1481
- - *a3
1482
1476
  - *a4
1477
+ - *a5
1478
+ - *a6
1483
1479
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1484
1480
  when: manual
1485
1481
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - api/.yarn
157
157
  - key: api-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - api/node_modules
161
161
  - api/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - api/.yarn
198
198
  - key: api-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - api/node_modules
202
- - api/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -544,7 +542,7 @@ before_script:
544
542
  - api-yarn
545
543
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
546
544
  policy: pull-push
547
- paths:
545
+ paths: &a3
548
546
  - api/node_modules
549
547
  - api/.yarn/install-state.gz
550
548
  fallback_keys:
@@ -589,9 +587,7 @@ before_script:
589
587
  - api-yarn
590
588
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
591
589
  policy: pull-push
592
- paths:
593
- - api/node_modules
594
- - api/.yarn/install-state.gz
590
+ paths: *a3
595
591
  fallback_keys:
596
592
  - api-node-modules
597
593
  rules:
@@ -1456,13 +1452,13 @@ create release:
1456
1452
  after_script:
1457
1453
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1458
1454
  rules:
1459
- - &a2
1455
+ - &a4
1460
1456
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1461
1457
  when: never
1462
- - &a3
1458
+ - &a5
1463
1459
  if: $CI_PIPELINE_SOURCE == "trigger"
1464
1460
  when: never
1465
- - &a4
1461
+ - &a6
1466
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1467
1463
  when: never
1468
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1477,9 +1473,9 @@ create release:
1477
1473
  after_script:
1478
1474
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1479
1475
  rules:
1480
- - *a2
1481
- - *a3
1482
1476
  - *a4
1477
+ - *a5
1478
+ - *a6
1483
1479
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1484
1480
  when: manual
1485
1481
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - api/.yarn
157
157
  - key: api-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - api/node_modules
161
161
  - api/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - api/.yarn
198
198
  - key: api-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - api/node_modules
202
- - api/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -544,7 +542,7 @@ before_script:
544
542
  - api-yarn
545
543
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
546
544
  policy: pull-push
547
- paths:
545
+ paths: &a3
548
546
  - api/node_modules
549
547
  - api/.yarn/install-state.gz
550
548
  fallback_keys:
@@ -589,9 +587,7 @@ before_script:
589
587
  - api-yarn
590
588
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
591
589
  policy: pull-push
592
- paths:
593
- - api/node_modules
594
- - api/.yarn/install-state.gz
590
+ paths: *a3
595
591
  fallback_keys:
596
592
  - api-node-modules
597
593
  rules:
@@ -1456,13 +1452,13 @@ create release:
1456
1452
  after_script:
1457
1453
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1458
1454
  rules:
1459
- - &a2
1455
+ - &a4
1460
1456
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1461
1457
  when: never
1462
- - &a3
1458
+ - &a5
1463
1459
  if: $CI_PIPELINE_SOURCE == "trigger"
1464
1460
  when: never
1465
- - &a4
1461
+ - &a6
1466
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1467
1463
  when: never
1468
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1477,9 +1473,9 @@ create release:
1477
1473
  after_script:
1478
1474
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1479
1475
  rules:
1480
- - *a2
1481
- - *a3
1482
1476
  - *a4
1477
+ - *a5
1478
+ - *a6
1483
1479
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1484
1480
  when: manual
1485
1481
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - web/.yarn
157
157
  - key: web-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - web/node_modules
161
161
  - web/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - web/.yarn
198
198
  - key: web-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - web/node_modules
202
- - web/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -538,7 +536,7 @@ before_script:
538
536
  - web-yarn
539
537
  - key: web-node-modules-mr$CI_MERGE_REQUEST_IID
540
538
  policy: pull-push
541
- paths:
539
+ paths: &a3
542
540
  - web/node_modules
543
541
  - web/.yarn/install-state.gz
544
542
  fallback_keys:
@@ -583,9 +581,7 @@ before_script:
583
581
  - web-yarn
584
582
  - key: web-node-modules-mr$CI_MERGE_REQUEST_IID
585
583
  policy: pull-push
586
- paths:
587
- - web/node_modules
588
- - web/.yarn/install-state.gz
584
+ paths: *a3
589
585
  fallback_keys:
590
586
  - web-node-modules
591
587
  rules:
@@ -1432,13 +1428,13 @@ create release:
1432
1428
  after_script:
1433
1429
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1434
1430
  rules:
1435
- - &a2
1431
+ - &a4
1436
1432
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1437
1433
  when: never
1438
- - &a3
1434
+ - &a5
1439
1435
  if: $CI_PIPELINE_SOURCE == "trigger"
1440
1436
  when: never
1441
- - &a4
1437
+ - &a6
1442
1438
  if: $CI_PIPELINE_SOURCE == "schedule"
1443
1439
  when: never
1444
1440
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1453,9 +1449,9 @@ create release:
1453
1449
  after_script:
1454
1450
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1455
1451
  rules:
1456
- - *a2
1457
- - *a3
1458
1452
  - *a4
1453
+ - *a5
1454
+ - *a6
1459
1455
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1460
1456
  when: manual
1461
1457
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - www/.yarn
157
157
  - key: www-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - www/node_modules
161
161
  - www/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - www/.yarn
198
198
  - key: www-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - www/node_modules
202
- - www/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -548,7 +546,7 @@ before_script:
548
546
  - www-yarn
549
547
  - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
550
548
  policy: pull-push
551
- paths:
549
+ paths: &a3
552
550
  - www/node_modules
553
551
  - www/.yarn/install-state.gz
554
552
  fallback_keys:
@@ -593,9 +591,7 @@ before_script:
593
591
  - www-yarn
594
592
  - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
595
593
  policy: pull-push
596
- paths:
597
- - www/node_modules
598
- - www/.yarn/install-state.gz
594
+ paths: *a3
599
595
  fallback_keys:
600
596
  - www-node-modules
601
597
  rules:
@@ -1474,13 +1470,13 @@ create release:
1474
1470
  after_script:
1475
1471
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1476
1472
  rules:
1477
- - &a2
1473
+ - &a4
1478
1474
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1479
1475
  when: never
1480
- - &a3
1476
+ - &a5
1481
1477
  if: $CI_PIPELINE_SOURCE == "trigger"
1482
1478
  when: never
1483
- - &a4
1479
+ - &a6
1484
1480
  if: $CI_PIPELINE_SOURCE == "schedule"
1485
1481
  when: never
1486
1482
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1495,9 +1491,9 @@ create release:
1495
1491
  after_script:
1496
1492
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1497
1493
  rules:
1498
- - *a2
1499
- - *a3
1500
1494
  - *a4
1495
+ - *a5
1496
+ - *a6
1501
1497
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1502
1498
  when: manual
1503
1499
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - api/.yarn
157
157
  - key: api-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - api/node_modules
161
161
  - api/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - api/.yarn
198
198
  - key: api-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - api/node_modules
202
- - api/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -544,7 +542,7 @@ before_script:
544
542
  - api-yarn
545
543
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
546
544
  policy: pull-push
547
- paths:
545
+ paths: &a3
548
546
  - api/node_modules
549
547
  - api/.yarn/install-state.gz
550
548
  fallback_keys:
@@ -589,9 +587,7 @@ before_script:
589
587
  - api-yarn
590
588
  - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
591
589
  policy: pull-push
592
- paths:
593
- - api/node_modules
594
- - api/.yarn/install-state.gz
590
+ paths: *a3
595
591
  fallback_keys:
596
592
  - api-node-modules
597
593
  rules:
@@ -1456,13 +1452,13 @@ create release:
1456
1452
  after_script:
1457
1453
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1458
1454
  rules:
1459
- - &a2
1455
+ - &a4
1460
1456
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1461
1457
  when: never
1462
- - &a3
1458
+ - &a5
1463
1459
  if: $CI_PIPELINE_SOURCE == "trigger"
1464
1460
  when: never
1465
- - &a4
1461
+ - &a6
1466
1462
  if: $CI_PIPELINE_SOURCE == "schedule"
1467
1463
  when: never
1468
1464
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1477,9 +1473,9 @@ create release:
1477
1473
  after_script:
1478
1474
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1479
1475
  rules:
1480
- - *a2
1481
- - *a3
1482
1476
  - *a4
1477
+ - *a5
1478
+ - *a6
1483
1479
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1484
1480
  when: manual
1485
1481
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
@@ -156,7 +156,7 @@ before_script:
156
156
  - app/.yarn
157
157
  - key: app-node-modules
158
158
  policy: pull-push
159
- paths:
159
+ paths: &a2
160
160
  - app/node_modules
161
161
  - app/.yarn/install-state.gz
162
162
  rules:
@@ -197,9 +197,7 @@ before_script:
197
197
  - app/.yarn
198
198
  - key: app-node-modules
199
199
  policy: pull-push
200
- paths:
201
- - app/node_modules
202
- - app/.yarn/install-state.gz
200
+ paths: *a2
203
201
  rules:
204
202
  - when: never
205
203
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -571,7 +569,7 @@ before_script:
571
569
  - app-yarn
572
570
  - key: app-node-modules-mr$CI_MERGE_REQUEST_IID
573
571
  policy: pull-push
574
- paths:
572
+ paths: &a3
575
573
  - app/node_modules
576
574
  - app/.yarn/install-state.gz
577
575
  fallback_keys:
@@ -616,9 +614,7 @@ before_script:
616
614
  - app-yarn
617
615
  - key: app-node-modules-mr$CI_MERGE_REQUEST_IID
618
616
  policy: pull-push
619
- paths:
620
- - app/node_modules
621
- - app/.yarn/install-state.gz
617
+ paths: *a3
622
618
  fallback_keys:
623
619
  - app-node-modules
624
620
  rules:
@@ -1564,13 +1560,13 @@ create release:
1564
1560
  after_script:
1565
1561
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1566
1562
  rules:
1567
- - &a2
1563
+ - &a4
1568
1564
  if: $CI_COMMIT_MESSAGE =~ /^chore\\(release\\).*/
1569
1565
  when: never
1570
- - &a3
1566
+ - &a5
1571
1567
  if: $CI_PIPELINE_SOURCE == "trigger"
1572
1568
  when: never
1573
- - &a4
1569
+ - &a6
1574
1570
  if: $CI_PIPELINE_SOURCE == "schedule"
1575
1571
  when: never
1576
1572
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
@@ -1585,9 +1581,9 @@ create release:
1585
1581
  after_script:
1586
1582
  - echo '👉 If this job failed with access denied, the project access token might be invald - run \`project-renew-token\` in catladder CLI to fix.'
1587
1583
  rules:
1588
- - *a2
1589
- - *a3
1590
1584
  - *a4
1585
+ - *a5
1586
+ - *a6
1591
1587
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1592
1588
  when: manual
1593
1589
  - if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/