@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.
Files changed (77) hide show
  1. package/dist/build/custom/testJob.js +1 -2
  2. package/dist/build/node/testJob.js +1 -2
  3. package/dist/build/node/yarn.js +3 -2
  4. package/dist/build/rails/test.js +1 -2
  5. package/dist/constants.js +1 -1
  6. package/dist/deploy/types/googleCloudRun.d.ts +1 -1
  7. package/dist/pipeline/agent/createAgentReviewJob.js +1 -0
  8. package/dist/pipeline/agent/shared.d.ts +1 -1
  9. package/dist/pipeline/agent/shared.js +0 -1
  10. package/dist/pipeline/createMainPipeline.js +1 -0
  11. package/dist/pipeline/gitlab/cache.d.ts +9 -0
  12. package/dist/pipeline/gitlab/cache.js +47 -0
  13. package/dist/pipeline/gitlab/createGitlabJobs.js +7 -7
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/types/jobs.d.ts +2 -3
  16. package/examples/__snapshots__/automatic-releases.test.ts.snap +141 -31
  17. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +141 -31
  18. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +141 -31
  19. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +141 -31
  20. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +141 -31
  21. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +141 -31
  22. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +133 -27
  23. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +144 -32
  24. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +141 -31
  25. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +141 -31
  26. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +141 -31
  27. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +141 -31
  28. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +141 -31
  29. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +141 -31
  30. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +141 -31
  31. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +141 -31
  32. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +141 -31
  33. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +21 -11
  34. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +144 -32
  35. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +141 -31
  36. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +141 -31
  37. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +141 -31
  38. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +423 -93
  39. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +282 -62
  40. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +141 -31
  41. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +141 -31
  42. package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +93 -22
  43. package/examples/__snapshots__/custom-deploy.test.ts.snap +141 -31
  44. package/examples/__snapshots__/custom-envs.test.ts.snap +328 -40
  45. package/examples/__snapshots__/custom-verify-job.test.ts.snap +144 -32
  46. package/examples/__snapshots__/git-submodule.test.ts.snap +141 -31
  47. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +141 -31
  48. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +141 -31
  49. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +282 -62
  50. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +141 -31
  51. package/examples/__snapshots__/local-dot-env.test.ts.snap +141 -31
  52. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +133 -27
  53. package/examples/__snapshots__/modify-generated-files.test.ts.snap +124 -20
  54. package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +124 -20
  55. package/examples/__snapshots__/multiline-var.test.ts.snap +423 -93
  56. package/examples/__snapshots__/native-app.test.ts.snap +277 -57
  57. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +141 -31
  58. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +141 -31
  59. package/examples/__snapshots__/override-secrets.test.ts.snap +141 -31
  60. package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +84 -22
  61. package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +84 -22
  62. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +423 -93
  63. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +260 -52
  64. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +161 -43
  65. package/examples/__snapshots__/workspace-api-www.test.ts.snap +161 -43
  66. package/package.json +1 -1
  67. package/src/build/custom/testJob.ts +0 -1
  68. package/src/build/node/testJob.ts +0 -1
  69. package/src/build/node/yarn.ts +3 -2
  70. package/src/build/rails/test.ts +0 -1
  71. package/src/deploy/types/googleCloudRun.ts +1 -1
  72. package/src/pipeline/agent/createAgentReviewJob.ts +1 -0
  73. package/src/pipeline/agent/shared.ts +2 -2
  74. package/src/pipeline/createMainPipeline.ts +1 -0
  75. package/src/pipeline/gitlab/cache.ts +49 -0
  76. package/src/pipeline/gitlab/createGitlabJobs.ts +7 -9
  77. 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
- ๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit:
106
+ '๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit | dev ':
107
107
  stage: test
108
108
  image: path/to/docker/jobs-default:the-version
109
109
  variables:
@@ -120,9 +120,6 @@ before_script:
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 @@ before_script:
131
128
  - stuck_or_timeout_failure
132
129
  interruptible: true
133
130
  allow_failure: true
134
- ๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint:
131
+ '๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint | dev ':
135
132
  stage: test
136
133
  image: path/to/docker/jobs-default:the-version
137
134
  variables:
@@ -152,7 +149,7 @@ before_script:
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 @@ before_script:
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
- ๐Ÿ”ธ myWorkspace ๐Ÿงช test:
171
+ '๐Ÿ”ธ myWorkspace ๐Ÿงช test | dev ':
178
172
  stage: test
179
173
  image: path/to/docker/jobs-testing-chrome:the-version
180
174
  variables:
@@ -195,7 +189,7 @@ before_script:
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 @@ before_script:
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
@@ -272,7 +263,7 @@ before_script:
272
263
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
273
264
  - collapseable_section_end "nodeinstall"
274
265
  - collapseable_section_start "yarninstall" "Yarn install"
275
- - yarn install --immutable
266
+ - yarn install --immutable --inline-builds
276
267
  - collapseable_section_end "yarninstall"
277
268
  - yarn build
278
269
  cache:
@@ -311,6 +302,115 @@ before_script:
311
302
  needs: []
312
303
  retry: *a1
313
304
  interruptible: true
305
+ '๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit | review ':
306
+ stage: test
307
+ image: path/to/docker/jobs-default:the-version
308
+ variables:
309
+ KUBERNETES_CPU_REQUEST: '0.45'
310
+ KUBERNETES_MEMORY_REQUEST: 1Gi
311
+ KUBERNETES_MEMORY_LIMIT: 4Gi
312
+ script:
313
+ - collapseable_section_start "injectvars" "Injecting variables"
314
+ - export APP_PATH="."
315
+ - collapseable_section_end "injectvars"
316
+ - cd .
317
+ - yarn npm audit --environment production
318
+ rules:
319
+ - when: never
320
+ if: $CI_PIPELINE_SOURCE == "trigger"
321
+ - if: $CI_MERGE_REQUEST_ID
322
+ needs: []
323
+ retry: *a1
324
+ interruptible: true
325
+ allow_failure: true
326
+ '๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint | review ':
327
+ stage: test
328
+ image: path/to/docker/jobs-default:the-version
329
+ variables:
330
+ KUBERNETES_CPU_REQUEST: '0.45'
331
+ KUBERNETES_MEMORY_REQUEST: 1Gi
332
+ KUBERNETES_MEMORY_LIMIT: 4Gi
333
+ script:
334
+ - collapseable_section_start "injectvars" "Injecting variables"
335
+ - export APP_PATH="."
336
+ - collapseable_section_end "injectvars"
337
+ - collapseable_section_start "nodeinstall" "Ensure node version"
338
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
339
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
340
+ - collapseable_section_end "nodeinstall"
341
+ - cd .
342
+ - collapseable_section_start "nodeinstall" "Ensure node version"
343
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
344
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
345
+ - collapseable_section_end "nodeinstall"
346
+ - collapseable_section_start "yarninstall" "Yarn install"
347
+ - yarn install --immutable --inline-builds
348
+ - collapseable_section_end "yarninstall"
349
+ - yarn lint
350
+ cache:
351
+ - key: .-yarn-mr$CI_MERGE_REQUEST_IID
352
+ policy: pull-push
353
+ paths:
354
+ - .yarn
355
+ fallback_keys:
356
+ - .-yarn
357
+ - key: .-node-modules-mr$CI_MERGE_REQUEST_IID
358
+ policy: pull-push
359
+ paths:
360
+ - node_modules
361
+ fallback_keys:
362
+ - .-node-modules
363
+ rules:
364
+ - when: never
365
+ if: $CI_PIPELINE_SOURCE == "trigger"
366
+ - if: $CI_MERGE_REQUEST_ID
367
+ needs: []
368
+ retry: *a1
369
+ interruptible: true
370
+ '๐Ÿ”ธ myWorkspace ๐Ÿงช test | review ':
371
+ stage: test
372
+ image: path/to/docker/jobs-testing-chrome:the-version
373
+ variables:
374
+ KUBERNETES_CPU_REQUEST: '0.45'
375
+ KUBERNETES_MEMORY_REQUEST: 1Gi
376
+ KUBERNETES_MEMORY_LIMIT: 4Gi
377
+ script:
378
+ - collapseable_section_start "injectvars" "Injecting variables"
379
+ - export APP_PATH="."
380
+ - collapseable_section_end "injectvars"
381
+ - collapseable_section_start "nodeinstall" "Ensure node version"
382
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
383
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
384
+ - collapseable_section_end "nodeinstall"
385
+ - cd .
386
+ - collapseable_section_start "nodeinstall" "Ensure node version"
387
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
388
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
389
+ - collapseable_section_end "nodeinstall"
390
+ - collapseable_section_start "yarninstall" "Yarn install"
391
+ - yarn install --immutable --inline-builds
392
+ - collapseable_section_end "yarninstall"
393
+ - yarn test
394
+ cache:
395
+ - key: .-yarn-mr$CI_MERGE_REQUEST_IID
396
+ policy: pull-push
397
+ paths:
398
+ - .yarn
399
+ fallback_keys:
400
+ - .-yarn
401
+ - key: .-node-modules-mr$CI_MERGE_REQUEST_IID
402
+ policy: pull-push
403
+ paths:
404
+ - node_modules
405
+ fallback_keys:
406
+ - .-node-modules
407
+ rules:
408
+ - when: never
409
+ if: $CI_PIPELINE_SOURCE == "trigger"
410
+ - if: $CI_MERGE_REQUEST_ID
411
+ needs: []
412
+ retry: *a1
413
+ interruptible: true
314
414
  '๐Ÿ”ธ myWorkspace ๐Ÿ”จ app | review ':
315
415
  stage: build
316
416
  image: path/to/docker/jobs-default:the-version
@@ -366,24 +466,30 @@ before_script:
366
466
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
367
467
  - collapseable_section_end "nodeinstall"
368
468
  - collapseable_section_start "yarninstall" "Yarn install"
369
- - yarn install --immutable
469
+ - yarn install --immutable --inline-builds
370
470
  - collapseable_section_end "yarninstall"
371
471
  - yarn build
372
472
  cache:
373
- - key: .-yarn
473
+ - key: .-yarn-mr$CI_MERGE_REQUEST_IID
374
474
  policy: pull-push
375
475
  paths:
376
476
  - .yarn
377
- - key: .-node-modules
477
+ fallback_keys:
478
+ - .-yarn
479
+ - key: .-node-modules-mr$CI_MERGE_REQUEST_IID
378
480
  policy: pull-push
379
481
  paths:
380
482
  - node_modules
381
- - key: myWorkspace-default
483
+ fallback_keys:
484
+ - .-node-modules
485
+ - key: myWorkspace-default-mr$CI_MERGE_REQUEST_IID
382
486
  policy: pull-push
383
487
  paths:
384
488
  - .turbo
385
489
  - api/.component-custom-cache
386
490
  - www/.next/cache
491
+ fallback_keys:
492
+ - myWorkspace-default
387
493
  artifacts:
388
494
  paths:
389
495
  - api/.next
@@ -460,7 +566,7 @@ before_script:
460
566
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
461
567
  - collapseable_section_end "nodeinstall"
462
568
  - collapseable_section_start "yarninstall" "Yarn install"
463
- - yarn install --immutable
569
+ - yarn install --immutable --inline-builds
464
570
  - collapseable_section_end "yarninstall"
465
571
  - yarn build
466
572
  cache:
@@ -554,7 +660,7 @@ before_script:
554
660
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
555
661
  - collapseable_section_end "nodeinstall"
556
662
  - collapseable_section_start "yarninstall" "Yarn install"
557
- - yarn install --immutable
663
+ - yarn install --immutable --inline-builds
558
664
  - collapseable_section_end "yarninstall"
559
665
  - yarn build
560
666
  cache:
@@ -618,7 +724,8 @@ before_script:
618
724
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
619
725
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
620
726
  - |-
621
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
727
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
728
+ COPY --chown=node:node $APP_DIR .
622
729
  RUN yarn plugin import workspace-tools
623
730
  RUN yarn workspaces focus --production && yarn rebuild"
624
731
  - |-
@@ -772,11 +879,11 @@ before_script:
772
879
  - when: on_success
773
880
  if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
774
881
  needs:
775
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint
882
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint | dev '
776
883
  artifacts: false
777
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿงช test
884
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿงช test | dev '
778
885
  artifacts: false
779
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit
886
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit | dev '
780
887
  artifacts: false
781
888
  - job: '๐Ÿ”น api ๐Ÿ”จ docker | dev '
782
889
  artifacts: false
@@ -844,7 +951,8 @@ before_script:
844
951
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
845
952
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
846
953
  - |-
847
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
954
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
955
+ COPY --chown=node:node $APP_DIR .
848
956
  RUN yarn plugin import workspace-tools
849
957
  RUN yarn workspaces focus --production && yarn rebuild"
850
958
  - |-
@@ -867,10 +975,12 @@ before_script:
867
975
  - docker push $DOCKER_CACHE_IMAGE
868
976
  - collapseable_section_end "docker-push"
869
977
  cache:
870
- - key: api-yarn
978
+ - key: api-yarn-mr$CI_MERGE_REQUEST_IID
871
979
  policy: pull
872
980
  paths:
873
981
  - api/.yarn
982
+ fallback_keys:
983
+ - api-yarn
874
984
  rules:
875
985
  - when: never
876
986
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -1001,11 +1111,11 @@ before_script:
1001
1111
  - when: on_success
1002
1112
  if: $CI_MERGE_REQUEST_ID
1003
1113
  needs:
1004
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint
1114
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint | review '
1005
1115
  artifacts: false
1006
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿงช test
1116
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿงช test | review '
1007
1117
  artifacts: false
1008
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit
1118
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit | review '
1009
1119
  artifacts: false
1010
1120
  - job: '๐Ÿ”น api ๐Ÿ”จ docker | review '
1011
1121
  artifacts: false
@@ -1076,7 +1186,8 @@ before_script:
1076
1186
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
1077
1187
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1078
1188
  - |-
1079
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1189
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1190
+ COPY --chown=node:node $APP_DIR .
1080
1191
  RUN yarn plugin import workspace-tools
1081
1192
  RUN yarn workspaces focus --production && yarn rebuild"
1082
1193
  - |-
@@ -1295,7 +1406,8 @@ before_script:
1295
1406
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
1296
1407
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1297
1408
  - |-
1298
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1409
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1410
+ COPY --chown=node:node $APP_DIR .
1299
1411
  RUN yarn plugin import workspace-tools
1300
1412
  RUN yarn workspaces focus --production && yarn rebuild"
1301
1413
  - |-
@@ -1514,7 +1626,8 @@ before_script:
1514
1626
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
1515
1627
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1516
1628
  - |-
1517
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1629
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1630
+ COPY --chown=node:node $APP_DIR .
1518
1631
  RUN yarn plugin import workspace-tools
1519
1632
  RUN yarn workspaces focus --production && yarn rebuild"
1520
1633
  - |-
@@ -1671,11 +1784,11 @@ before_script:
1671
1784
  - when: on_success
1672
1785
  if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
1673
1786
  needs:
1674
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint
1787
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint | dev '
1675
1788
  artifacts: false
1676
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿงช test
1789
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿงช test | dev '
1677
1790
  artifacts: false
1678
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit
1791
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit | dev '
1679
1792
  artifacts: false
1680
1793
  - job: '๐Ÿ”น www ๐Ÿ”จ docker | dev '
1681
1794
  artifacts: false
@@ -1743,7 +1856,8 @@ before_script:
1743
1856
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
1744
1857
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1745
1858
  - |-
1746
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1859
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1860
+ COPY --chown=node:node $APP_DIR .
1747
1861
  RUN yarn plugin import workspace-tools
1748
1862
  RUN yarn workspaces focus --production && yarn rebuild"
1749
1863
  - |-
@@ -1766,10 +1880,12 @@ before_script:
1766
1880
  - docker push $DOCKER_CACHE_IMAGE
1767
1881
  - collapseable_section_end "docker-push"
1768
1882
  cache:
1769
- - key: www-yarn
1883
+ - key: www-yarn-mr$CI_MERGE_REQUEST_IID
1770
1884
  policy: pull
1771
1885
  paths:
1772
1886
  - www/.yarn
1887
+ fallback_keys:
1888
+ - www-yarn
1773
1889
  rules:
1774
1890
  - when: never
1775
1891
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -1903,11 +2019,11 @@ before_script:
1903
2019
  - when: on_success
1904
2020
  if: $CI_MERGE_REQUEST_ID
1905
2021
  needs:
1906
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint
2022
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿ‘ฎ lint | review '
1907
2023
  artifacts: false
1908
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿงช test
2024
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿงช test | review '
1909
2025
  artifacts: false
1910
- - job: ๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit
2026
+ - job: '๐Ÿ”ธ myWorkspace ๐Ÿ›ก audit | review '
1911
2027
  artifacts: false
1912
2028
  - job: '๐Ÿ”น www ๐Ÿ”จ docker | review '
1913
2029
  artifacts: false
@@ -1978,7 +2094,8 @@ before_script:
1978
2094
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
1979
2095
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1980
2096
  - |-
1981
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2097
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2098
+ COPY --chown=node:node $APP_DIR .
1982
2099
  RUN yarn plugin import workspace-tools
1983
2100
  RUN yarn workspaces focus --production && yarn rebuild"
1984
2101
  - |-
@@ -2200,7 +2317,8 @@ before_script:
2200
2317
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
2201
2318
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
2202
2319
  - |-
2203
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2320
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2321
+ COPY --chown=node:node $APP_DIR .
2204
2322
  RUN yarn plugin import workspace-tools
2205
2323
  RUN yarn workspaces focus --production && yarn rebuild"
2206
2324
  - |-