@catladder/pipeline 3.26.0 → 3.28.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 (57) hide show
  1. package/dist/build/node/yarn.d.ts +2 -1
  2. package/dist/build/node/yarn.js +7 -3
  3. package/dist/build/types.d.ts +6 -0
  4. package/dist/constants.js +1 -1
  5. package/dist/deploy/types/googleCloudRun.d.ts +1 -1
  6. package/dist/tsconfig.tsbuildinfo +1 -1
  7. package/examples/__snapshots__/automatic-releases.test.ts.snap +24 -16
  8. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +24 -16
  9. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +24 -16
  10. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +24 -16
  11. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +24 -16
  12. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +24 -16
  13. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +8 -8
  14. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +24 -16
  15. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +24 -16
  16. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +24 -16
  17. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +24 -16
  18. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +24 -16
  19. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +24 -16
  20. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +24 -16
  21. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +24 -16
  22. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +24 -16
  23. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +24 -16
  24. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +20 -12
  25. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +24 -16
  26. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +24 -16
  27. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +24 -16
  28. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +24 -16
  29. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +72 -48
  30. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +48 -32
  31. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +24 -16
  32. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +24 -16
  33. package/examples/__snapshots__/custom-deploy.test.ts.snap +24 -16
  34. package/examples/__snapshots__/custom-envs.test.ts.snap +14 -14
  35. package/examples/__snapshots__/custom-verify-job.test.ts.snap +24 -16
  36. package/examples/__snapshots__/git-submodule.test.ts.snap +24 -16
  37. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +24 -16
  38. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +24 -16
  39. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +48 -32
  40. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +24 -16
  41. package/examples/__snapshots__/local-dot-env.test.ts.snap +24 -16
  42. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +8 -8
  43. package/examples/__snapshots__/modify-generated-files.test.ts.snap +8 -8
  44. package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +8 -8
  45. package/examples/__snapshots__/multiline-var.test.ts.snap +72 -48
  46. package/examples/__snapshots__/native-app.test.ts.snap +32 -24
  47. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +24 -16
  48. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +24 -16
  49. package/examples/__snapshots__/override-secrets.test.ts.snap +24 -16
  50. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +72 -48
  51. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +16 -16
  52. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +40 -24
  53. package/examples/__snapshots__/workspace-api-www.test.ts.snap +40 -24
  54. package/package.json +1 -1
  55. package/src/build/node/yarn.ts +18 -5
  56. package/src/build/types.ts +6 -0
  57. package/src/deploy/types/googleCloudRun.ts +1 -1
@@ -149,7 +149,7 @@ before_script:
149
149
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
150
150
  - collapseable_section_end "nodeinstall"
151
151
  - collapseable_section_start "yarninstall" "Yarn install"
152
- - yarn install --immutable
152
+ - yarn install --immutable --inline-builds
153
153
  - collapseable_section_end "yarninstall"
154
154
  - yarn lint
155
155
  cache:
@@ -189,7 +189,7 @@ before_script:
189
189
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
190
190
  - collapseable_section_end "nodeinstall"
191
191
  - collapseable_section_start "yarninstall" "Yarn install"
192
- - yarn install --immutable
192
+ - yarn install --immutable --inline-builds
193
193
  - collapseable_section_end "yarninstall"
194
194
  - yarn test
195
195
  cache:
@@ -263,7 +263,7 @@ before_script:
263
263
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
264
264
  - collapseable_section_end "nodeinstall"
265
265
  - collapseable_section_start "yarninstall" "Yarn install"
266
- - yarn install --immutable
266
+ - yarn install --immutable --inline-builds
267
267
  - collapseable_section_end "yarninstall"
268
268
  - yarn build
269
269
  cache:
@@ -344,7 +344,7 @@ before_script:
344
344
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
345
345
  - collapseable_section_end "nodeinstall"
346
346
  - collapseable_section_start "yarninstall" "Yarn install"
347
- - yarn install --immutable
347
+ - yarn install --immutable --inline-builds
348
348
  - collapseable_section_end "yarninstall"
349
349
  - yarn lint
350
350
  cache:
@@ -388,7 +388,7 @@ before_script:
388
388
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
389
389
  - collapseable_section_end "nodeinstall"
390
390
  - collapseable_section_start "yarninstall" "Yarn install"
391
- - yarn install --immutable
391
+ - yarn install --immutable --inline-builds
392
392
  - collapseable_section_end "yarninstall"
393
393
  - yarn test
394
394
  cache:
@@ -466,7 +466,7 @@ before_script:
466
466
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
467
467
  - collapseable_section_end "nodeinstall"
468
468
  - collapseable_section_start "yarninstall" "Yarn install"
469
- - yarn install --immutable
469
+ - yarn install --immutable --inline-builds
470
470
  - collapseable_section_end "yarninstall"
471
471
  - yarn build
472
472
  cache:
@@ -566,7 +566,7 @@ before_script:
566
566
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
567
567
  - collapseable_section_end "nodeinstall"
568
568
  - collapseable_section_start "yarninstall" "Yarn install"
569
- - yarn install --immutable
569
+ - yarn install --immutable --inline-builds
570
570
  - collapseable_section_end "yarninstall"
571
571
  - yarn build
572
572
  cache:
@@ -660,7 +660,7 @@ before_script:
660
660
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
661
661
  - collapseable_section_end "nodeinstall"
662
662
  - collapseable_section_start "yarninstall" "Yarn install"
663
- - yarn install --immutable
663
+ - yarn install --immutable --inline-builds
664
664
  - collapseable_section_end "yarninstall"
665
665
  - yarn build
666
666
  cache:
@@ -724,9 +724,11 @@ before_script:
724
724
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
725
725
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
726
726
  - |-
727
- 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 .
728
729
  RUN yarn plugin import workspace-tools
729
- RUN yarn workspaces focus --production && yarn rebuild"
730
+ RUN yarn workspaces focus --production
731
+ RUN yarn rebuild"
730
732
  - |-
731
733
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node api/package.json /app/api/package.json
732
734
  COPY --chown=node:node api/yarn.lock /app/api/yarn.lock
@@ -950,9 +952,11 @@ before_script:
950
952
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
951
953
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
952
954
  - |-
953
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
955
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
956
+ COPY --chown=node:node $APP_DIR .
954
957
  RUN yarn plugin import workspace-tools
955
- RUN yarn workspaces focus --production && yarn rebuild"
958
+ RUN yarn workspaces focus --production
959
+ RUN yarn rebuild"
956
960
  - |-
957
961
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node api/package.json /app/api/package.json
958
962
  COPY --chown=node:node api/yarn.lock /app/api/yarn.lock
@@ -1184,9 +1188,11 @@ before_script:
1184
1188
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
1185
1189
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1186
1190
  - |-
1187
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1191
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1192
+ COPY --chown=node:node $APP_DIR .
1188
1193
  RUN yarn plugin import workspace-tools
1189
- RUN yarn workspaces focus --production && yarn rebuild"
1194
+ RUN yarn workspaces focus --production
1195
+ RUN yarn rebuild"
1190
1196
  - |-
1191
1197
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node api/package.json /app/api/package.json
1192
1198
  COPY --chown=node:node api/yarn.lock /app/api/yarn.lock
@@ -1403,9 +1409,11 @@ before_script:
1403
1409
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
1404
1410
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1405
1411
  - |-
1406
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1412
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1413
+ COPY --chown=node:node $APP_DIR .
1407
1414
  RUN yarn plugin import workspace-tools
1408
- RUN yarn workspaces focus --production && yarn rebuild"
1415
+ RUN yarn workspaces focus --production
1416
+ RUN yarn rebuild"
1409
1417
  - |-
1410
1418
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node api/package.json /app/api/package.json
1411
1419
  COPY --chown=node:node api/yarn.lock /app/api/yarn.lock
@@ -1622,9 +1630,11 @@ before_script:
1622
1630
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
1623
1631
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1624
1632
  - |-
1625
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1633
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1634
+ COPY --chown=node:node $APP_DIR .
1626
1635
  RUN yarn plugin import workspace-tools
1627
- RUN yarn workspaces focus --production && yarn rebuild"
1636
+ RUN yarn workspaces focus --production
1637
+ RUN yarn rebuild"
1628
1638
  - |-
1629
1639
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node www/package.json /app/www/package.json
1630
1640
  COPY --chown=node:node www/yarn.lock /app/www/yarn.lock
@@ -1851,9 +1861,11 @@ before_script:
1851
1861
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
1852
1862
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1853
1863
  - |-
1854
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1864
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1865
+ COPY --chown=node:node $APP_DIR .
1855
1866
  RUN yarn plugin import workspace-tools
1856
- RUN yarn workspaces focus --production && yarn rebuild"
1867
+ RUN yarn workspaces focus --production
1868
+ RUN yarn rebuild"
1857
1869
  - |-
1858
1870
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node www/package.json /app/www/package.json
1859
1871
  COPY --chown=node:node www/yarn.lock /app/www/yarn.lock
@@ -2088,9 +2100,11 @@ before_script:
2088
2100
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
2089
2101
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
2090
2102
  - |-
2091
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2103
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2104
+ COPY --chown=node:node $APP_DIR .
2092
2105
  RUN yarn plugin import workspace-tools
2093
- RUN yarn workspaces focus --production && yarn rebuild"
2106
+ RUN yarn workspaces focus --production
2107
+ RUN yarn rebuild"
2094
2108
  - |-
2095
2109
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node www/package.json /app/www/package.json
2096
2110
  COPY --chown=node:node www/yarn.lock /app/www/yarn.lock
@@ -2310,9 +2324,11 @@ before_script:
2310
2324
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
2311
2325
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
2312
2326
  - |-
2313
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2327
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2328
+ COPY --chown=node:node $APP_DIR .
2314
2329
  RUN yarn plugin import workspace-tools
2315
- RUN yarn workspaces focus --production && yarn rebuild"
2330
+ RUN yarn workspaces focus --production
2331
+ RUN yarn rebuild"
2316
2332
  - |-
2317
2333
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node www/package.json /app/www/package.json
2318
2334
  COPY --chown=node:node www/yarn.lock /app/www/yarn.lock
@@ -149,7 +149,7 @@ before_script:
149
149
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
150
150
  - collapseable_section_end "nodeinstall"
151
151
  - collapseable_section_start "yarninstall" "Yarn install"
152
- - yarn install --immutable
152
+ - yarn install --immutable --inline-builds
153
153
  - collapseable_section_end "yarninstall"
154
154
  - yarn lint
155
155
  cache:
@@ -189,7 +189,7 @@ before_script:
189
189
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
190
190
  - collapseable_section_end "nodeinstall"
191
191
  - collapseable_section_start "yarninstall" "Yarn install"
192
- - yarn install --immutable
192
+ - yarn install --immutable --inline-builds
193
193
  - collapseable_section_end "yarninstall"
194
194
  - yarn test
195
195
  cache:
@@ -263,7 +263,7 @@ before_script:
263
263
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
264
264
  - collapseable_section_end "nodeinstall"
265
265
  - collapseable_section_start "yarninstall" "Yarn install"
266
- - yarn install --immutable
266
+ - yarn install --immutable --inline-builds
267
267
  - collapseable_section_end "yarninstall"
268
268
  - yarn build
269
269
  cache:
@@ -342,7 +342,7 @@ before_script:
342
342
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
343
343
  - collapseable_section_end "nodeinstall"
344
344
  - collapseable_section_start "yarninstall" "Yarn install"
345
- - yarn install --immutable
345
+ - yarn install --immutable --inline-builds
346
346
  - collapseable_section_end "yarninstall"
347
347
  - yarn lint
348
348
  cache:
@@ -386,7 +386,7 @@ before_script:
386
386
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
387
387
  - collapseable_section_end "nodeinstall"
388
388
  - collapseable_section_start "yarninstall" "Yarn install"
389
- - yarn install --immutable
389
+ - yarn install --immutable --inline-builds
390
390
  - collapseable_section_end "yarninstall"
391
391
  - yarn test
392
392
  cache:
@@ -464,7 +464,7 @@ before_script:
464
464
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
465
465
  - collapseable_section_end "nodeinstall"
466
466
  - collapseable_section_start "yarninstall" "Yarn install"
467
- - yarn install --immutable
467
+ - yarn install --immutable --inline-builds
468
468
  - collapseable_section_end "yarninstall"
469
469
  - yarn build
470
470
  cache:
@@ -562,7 +562,7 @@ before_script:
562
562
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
563
563
  - collapseable_section_end "nodeinstall"
564
564
  - collapseable_section_start "yarninstall" "Yarn install"
565
- - yarn install --immutable
565
+ - yarn install --immutable --inline-builds
566
566
  - collapseable_section_end "yarninstall"
567
567
  - yarn build
568
568
  cache:
@@ -654,7 +654,7 @@ before_script:
654
654
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
655
655
  - collapseable_section_end "nodeinstall"
656
656
  - collapseable_section_start "yarninstall" "Yarn install"
657
- - yarn install --immutable
657
+ - yarn install --immutable --inline-builds
658
658
  - collapseable_section_end "yarninstall"
659
659
  - yarn build
660
660
  cache:
@@ -716,9 +716,11 @@ before_script:
716
716
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
717
717
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
718
718
  - |-
719
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
719
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
720
+ COPY --chown=node:node $APP_DIR .
720
721
  RUN yarn plugin import workspace-tools
721
- RUN yarn workspaces focus --production && yarn rebuild"
722
+ RUN yarn workspaces focus --production
723
+ RUN yarn rebuild"
722
724
  - |-
723
725
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node api/package.json /app/api/package.json
724
726
  COPY --chown=node:node api/yarn.lock /app/api/yarn.lock
@@ -942,9 +944,11 @@ before_script:
942
944
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
943
945
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
944
946
  - |-
945
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
947
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
948
+ COPY --chown=node:node $APP_DIR .
946
949
  RUN yarn plugin import workspace-tools
947
- RUN yarn workspaces focus --production && yarn rebuild"
950
+ RUN yarn workspaces focus --production
951
+ RUN yarn rebuild"
948
952
  - |-
949
953
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node api/package.json /app/api/package.json
950
954
  COPY --chown=node:node api/yarn.lock /app/api/yarn.lock
@@ -1176,9 +1180,11 @@ before_script:
1176
1180
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
1177
1181
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1178
1182
  - |-
1179
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1183
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1184
+ COPY --chown=node:node $APP_DIR .
1180
1185
  RUN yarn plugin import workspace-tools
1181
- RUN yarn workspaces focus --production && yarn rebuild"
1186
+ RUN yarn workspaces focus --production
1187
+ RUN yarn rebuild"
1182
1188
  - |-
1183
1189
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node api/package.json /app/api/package.json
1184
1190
  COPY --chown=node:node api/yarn.lock /app/api/yarn.lock
@@ -1395,9 +1401,11 @@ before_script:
1395
1401
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
1396
1402
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1397
1403
  - |-
1398
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1404
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1405
+ COPY --chown=node:node $APP_DIR .
1399
1406
  RUN yarn plugin import workspace-tools
1400
- RUN yarn workspaces focus --production && yarn rebuild"
1407
+ RUN yarn workspaces focus --production
1408
+ RUN yarn rebuild"
1401
1409
  - |-
1402
1410
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node api/package.json /app/api/package.json
1403
1411
  COPY --chown=node:node api/yarn.lock /app/api/yarn.lock
@@ -1614,9 +1622,11 @@ before_script:
1614
1622
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
1615
1623
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1616
1624
  - |-
1617
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1625
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1626
+ COPY --chown=node:node $APP_DIR .
1618
1627
  RUN yarn plugin import workspace-tools
1619
- RUN yarn workspaces focus --production && yarn rebuild"
1628
+ RUN yarn workspaces focus --production
1629
+ RUN yarn rebuild"
1620
1630
  - |-
1621
1631
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node www/package.json /app/www/package.json
1622
1632
  COPY --chown=node:node www/yarn.lock /app/www/yarn.lock
@@ -1843,9 +1853,11 @@ before_script:
1843
1853
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
1844
1854
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1845
1855
  - |-
1846
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1856
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1857
+ COPY --chown=node:node $APP_DIR .
1847
1858
  RUN yarn plugin import workspace-tools
1848
- RUN yarn workspaces focus --production && yarn rebuild"
1859
+ RUN yarn workspaces focus --production
1860
+ RUN yarn rebuild"
1849
1861
  - |-
1850
1862
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node www/package.json /app/www/package.json
1851
1863
  COPY --chown=node:node www/yarn.lock /app/www/yarn.lock
@@ -2080,9 +2092,11 @@ before_script:
2080
2092
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
2081
2093
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
2082
2094
  - |-
2083
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2095
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2096
+ COPY --chown=node:node $APP_DIR .
2084
2097
  RUN yarn plugin import workspace-tools
2085
- RUN yarn workspaces focus --production && yarn rebuild"
2098
+ RUN yarn workspaces focus --production
2099
+ RUN yarn rebuild"
2086
2100
  - |-
2087
2101
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node www/package.json /app/www/package.json
2088
2102
  COPY --chown=node:node www/yarn.lock /app/www/yarn.lock
@@ -2302,9 +2316,11 @@ before_script:
2302
2316
  - export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
2303
2317
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
2304
2318
  - |-
2305
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2319
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2320
+ COPY --chown=node:node $APP_DIR .
2306
2321
  RUN yarn plugin import workspace-tools
2307
- RUN yarn workspaces focus --production && yarn rebuild"
2322
+ RUN yarn workspaces focus --production
2323
+ RUN yarn rebuild"
2308
2324
  - |-
2309
2325
  export DOCKER_COPY_WORKSPACE_FILES="COPY --chown=node:node www/package.json /app/www/package.json
2310
2326
  COPY --chown=node:node www/yarn.lock /app/www/yarn.lock
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  }
54
54
  ],
55
55
  "license": "MIT",
56
- "version": "3.26.0",
56
+ "version": "3.28.0",
57
57
  "scripts": {
58
58
  "build:tsc": "yarn tsc",
59
59
  "build": "yarn build:compile && yarn build:inline-variables",
@@ -1,19 +1,21 @@
1
1
  import { BashExpression } from "../../bash/BashExpression";
2
+ import type { ComponentContextWithBuild } from "../../types";
2
3
  import { type Context } from "../../types";
3
4
  import { ensureArray } from "../../utils";
4
5
  import { collapseableSection } from "../../utils/gitlab";
5
6
 
6
7
  const YARN_INSTALL_CLASSIC = `yarn install --frozen-lockfile`;
7
8
 
9
+ const YARN_BERRY_PROD_INSTALL = `yarn workspaces focus --production`;
8
10
  // FIXME: check why and when rebuild is needed
9
- const YARN_BERRY_PROD_REBUILD = `yarn workspaces focus --production && yarn rebuild`;
11
+ const YARN_BERRY_PROD_REBUILD = `yarn rebuild`;
10
12
 
11
13
  const getYarnInstallCommand = (context: Context) => {
12
14
  if (context.packageManagerInfo.isClassic) {
13
15
  return YARN_INSTALL_CLASSIC;
14
16
  }
15
-
16
- return `yarn install --immutable`;
17
+ // inline builds make debugging easier as it prints it out in the logs, instead of writing it in temp files
18
+ return `yarn install --immutable --inline-builds`;
17
19
  };
18
20
 
19
21
  export const ensureNodeVersion = (context: Context) =>
@@ -54,7 +56,9 @@ export const getYarnInstall = (
54
56
 
55
57
  const DOCKER_COPY_FILES = `COPY --chown=node:node $APP_DIR .`;
56
58
 
57
- export const getDockerAppCopyAndBuildScript = (context: Context) => {
59
+ export const getDockerAppCopyAndBuildScript = (
60
+ context: ComponentContextWithBuild,
61
+ ) => {
58
62
  if (context.packageManagerInfo.isClassic) {
59
63
  return new BashExpression(
60
64
  `
@@ -65,6 +69,13 @@ RUN ${YARN_INSTALL_CLASSIC} --production
65
69
  );
66
70
  }
67
71
 
72
+ const yarnRebuildEnabled =
73
+ "docker" in context.build.config &&
74
+ context.build.config.docker &&
75
+ "yarnRebuildEnabled" in context.build.config.docker
76
+ ? (context.build.config.docker.yarnRebuildEnabled ?? true)
77
+ : true;
78
+
68
79
  // yarn >= 4 ships with build in plugins, see https://github.com/yarnpkg/berry/pull/4253
69
80
  // trying to import those fail on this version
70
81
  const doesNotShipWithBuiltInPlugins = ["2", "3"].some((v) =>
@@ -78,9 +89,11 @@ RUN ${YARN_INSTALL_CLASSIC} --production
78
89
  // rebuild first does not work as it will run postinstall and that might require files in the app
79
90
  return new BashExpression(
80
91
  `
92
+ ENV YARN_ENABLE_INLINE_BUILDS=1
81
93
  ${DOCKER_COPY_FILES}
82
94
  ${maybeAddWorkspaceToolsCommand}
83
- RUN ${YARN_BERRY_PROD_REBUILD}
95
+ RUN ${YARN_BERRY_PROD_INSTALL}
96
+ ${yarnRebuildEnabled ? `RUN ${YARN_BERRY_PROD_REBUILD}` : ""}
84
97
 
85
98
  `.trim(),
86
99
  );
@@ -204,6 +204,12 @@ type BuildConfigDockerWithAdditions = {
204
204
 
205
205
  type BuildConfigDockerBuiltInNode = {
206
206
  type: "node";
207
+ /**
208
+ * whether to run yarn rebuild after yarn install. Defaults to true.
209
+ *
210
+ * Future versions of catladder will default to false.
211
+ */
212
+ yarnRebuildEnabled?: boolean;
207
213
  } & BuildConfigDockerWithAdditions;
208
214
 
209
215
  type BuildConfigDockerBuiltInMeteor = {
@@ -559,7 +559,7 @@ export type DeployConfigCloudRunExecuteHttp = {
559
559
  /**
560
560
  * the http-method to use. Defaults to "POST" (as specified by google cloud scheduler)
561
561
  */
562
- method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
562
+ method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "PURGE";
563
563
 
564
564
  /**
565
565
  * the body to send