@catladder/pipeline 3.25.0 → 3.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/custom/testJob.js +1 -2
- package/dist/build/node/testJob.js +1 -2
- package/dist/build/node/yarn.js +3 -2
- package/dist/build/rails/test.js +1 -2
- package/dist/constants.js +1 -1
- package/dist/deploy/types/googleCloudRun.d.ts +1 -1
- package/dist/pipeline/agent/createAgentReviewJob.js +1 -0
- package/dist/pipeline/agent/shared.d.ts +1 -1
- package/dist/pipeline/agent/shared.js +0 -1
- package/dist/pipeline/createMainPipeline.js +1 -0
- package/dist/pipeline/gitlab/cache.d.ts +9 -0
- package/dist/pipeline/gitlab/cache.js +47 -0
- package/dist/pipeline/gitlab/createGitlabJobs.js +7 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/jobs.d.ts +2 -3
- package/examples/__snapshots__/automatic-releases.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +133 -27
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +144 -32
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +21 -11
- package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +144 -32
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +423 -93
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +282 -62
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +141 -31
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +141 -31
- package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +93 -22
- package/examples/__snapshots__/custom-deploy.test.ts.snap +141 -31
- package/examples/__snapshots__/custom-envs.test.ts.snap +328 -40
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +144 -32
- package/examples/__snapshots__/git-submodule.test.ts.snap +141 -31
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +141 -31
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +141 -31
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +282 -62
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +141 -31
- package/examples/__snapshots__/local-dot-env.test.ts.snap +141 -31
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +133 -27
- package/examples/__snapshots__/modify-generated-files.test.ts.snap +124 -20
- package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +124 -20
- package/examples/__snapshots__/multiline-var.test.ts.snap +423 -93
- package/examples/__snapshots__/native-app.test.ts.snap +277 -57
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +141 -31
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +141 -31
- package/examples/__snapshots__/override-secrets.test.ts.snap +141 -31
- package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +84 -22
- package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +84 -22
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +423 -93
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +260 -52
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +161 -43
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +161 -43
- package/package.json +1 -1
- package/src/build/custom/testJob.ts +0 -1
- package/src/build/node/testJob.ts +0 -1
- package/src/build/node/yarn.ts +3 -2
- package/src/build/rails/test.ts +0 -1
- package/src/deploy/types/googleCloudRun.ts +1 -1
- package/src/pipeline/agent/createAgentReviewJob.ts +1 -0
- package/src/pipeline/agent/shared.ts +2 -2
- package/src/pipeline/createMainPipeline.ts +1 -0
- package/src/pipeline/gitlab/cache.ts +49 -0
- package/src/pipeline/gitlab/createGitlabJobs.ts +7 -9
- package/src/types/jobs.ts +2 -3
|
@@ -103,7 +103,7 @@ before_script:
|
|
|
103
103
|
local section_title="\${1}"
|
|
104
104
|
echo -e "section_end:\`date +%s\`:\${section_title}\\r\\e[0K"
|
|
105
105
|
}
|
|
106
|
-
api 🛡 audit:
|
|
106
|
+
'api 🛡 audit | dev ':
|
|
107
107
|
stage: test
|
|
108
108
|
image: path/to/docker/jobs-default:the-version
|
|
109
109
|
variables:
|
|
@@ -120,9 +120,6 @@ api 🛡 audit:
|
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
122
122
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
123
|
-
- when: never
|
|
124
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
125
|
-
- if: $CI_MERGE_REQUEST_ID
|
|
126
123
|
needs: []
|
|
127
124
|
retry: &a1
|
|
128
125
|
max: 2
|
|
@@ -131,7 +128,7 @@ api 🛡 audit:
|
|
|
131
128
|
- stuck_or_timeout_failure
|
|
132
129
|
interruptible: true
|
|
133
130
|
allow_failure: true
|
|
134
|
-
api 👮 lint:
|
|
131
|
+
'api 👮 lint | dev ':
|
|
135
132
|
stage: test
|
|
136
133
|
image: path/to/docker/jobs-default:the-version
|
|
137
134
|
variables:
|
|
@@ -152,7 +149,7 @@ api 👮 lint:
|
|
|
152
149
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
153
150
|
- collapseable_section_end "nodeinstall"
|
|
154
151
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
155
|
-
- yarn install --immutable
|
|
152
|
+
- yarn install --immutable --inline-builds
|
|
156
153
|
- collapseable_section_end "yarninstall"
|
|
157
154
|
- yarn lint
|
|
158
155
|
cache:
|
|
@@ -168,13 +165,10 @@ api 👮 lint:
|
|
|
168
165
|
- when: never
|
|
169
166
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
170
167
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
171
|
-
- when: never
|
|
172
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
173
|
-
- if: $CI_MERGE_REQUEST_ID
|
|
174
168
|
needs: []
|
|
175
169
|
retry: *a1
|
|
176
170
|
interruptible: true
|
|
177
|
-
api 🧪 test:
|
|
171
|
+
'api 🧪 test | dev ':
|
|
178
172
|
stage: test
|
|
179
173
|
image: path/to/docker/jobs-testing-chrome:the-version
|
|
180
174
|
variables:
|
|
@@ -195,7 +189,7 @@ api 🧪 test:
|
|
|
195
189
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
196
190
|
- collapseable_section_end "nodeinstall"
|
|
197
191
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
198
|
-
- yarn install --immutable
|
|
192
|
+
- yarn install --immutable --inline-builds
|
|
199
193
|
- collapseable_section_end "yarninstall"
|
|
200
194
|
- yarn test
|
|
201
195
|
cache:
|
|
@@ -211,9 +205,6 @@ api 🧪 test:
|
|
|
211
205
|
- when: never
|
|
212
206
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
213
207
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
214
|
-
- when: never
|
|
215
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
216
|
-
- if: $CI_MERGE_REQUEST_ID
|
|
217
208
|
needs: []
|
|
218
209
|
retry: *a1
|
|
219
210
|
interruptible: true
|
|
@@ -272,7 +263,7 @@ api 🧪 test:
|
|
|
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:
|
|
@@ -327,7 +318,8 @@ api 🧪 test:
|
|
|
327
318
|
- export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
|
|
328
319
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
329
320
|
- |-
|
|
330
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
321
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
322
|
+
COPY --chown=node:node $APP_DIR .
|
|
331
323
|
RUN yarn plugin import workspace-tools
|
|
332
324
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
333
325
|
- |-
|
|
@@ -494,17 +486,17 @@ api 🧪 test:
|
|
|
494
486
|
- when: on_success
|
|
495
487
|
if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
496
488
|
needs:
|
|
497
|
-
- job: api 👮 lint
|
|
489
|
+
- job: 'api 👮 lint | dev '
|
|
498
490
|
artifacts: false
|
|
499
491
|
- job: 'api 🔨 app | dev '
|
|
500
492
|
artifacts: false
|
|
501
493
|
- job: 'api 🔨 docker | dev '
|
|
502
494
|
artifacts: false
|
|
503
|
-
- job: api 🧪 test
|
|
495
|
+
- job: 'api 🧪 test | dev '
|
|
504
496
|
artifacts: false
|
|
505
497
|
- job: 'api 🧾 sbom | dev '
|
|
506
498
|
artifacts: true
|
|
507
|
-
- job: api 🛡 audit
|
|
499
|
+
- job: 'api 🛡 audit | dev '
|
|
508
500
|
artifacts: false
|
|
509
501
|
retry: *a1
|
|
510
502
|
interruptible: true
|
|
@@ -545,6 +537,115 @@ api 🧪 test:
|
|
|
545
537
|
retry: *a1
|
|
546
538
|
interruptible: true
|
|
547
539
|
allow_failure: true
|
|
540
|
+
'api 🛡 audit | review ':
|
|
541
|
+
stage: test
|
|
542
|
+
image: path/to/docker/jobs-default:the-version
|
|
543
|
+
variables:
|
|
544
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
545
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
546
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
547
|
+
script:
|
|
548
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
549
|
+
- export APP_PATH="api"
|
|
550
|
+
- collapseable_section_end "injectvars"
|
|
551
|
+
- cd api
|
|
552
|
+
- yarn npm audit --environment production
|
|
553
|
+
rules:
|
|
554
|
+
- when: never
|
|
555
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
556
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
557
|
+
needs: []
|
|
558
|
+
retry: *a1
|
|
559
|
+
interruptible: true
|
|
560
|
+
allow_failure: true
|
|
561
|
+
'api 👮 lint | review ':
|
|
562
|
+
stage: test
|
|
563
|
+
image: path/to/docker/jobs-default:the-version
|
|
564
|
+
variables:
|
|
565
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
566
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
567
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
568
|
+
script:
|
|
569
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
570
|
+
- export APP_PATH="api"
|
|
571
|
+
- collapseable_section_end "injectvars"
|
|
572
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
573
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
574
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
575
|
+
- collapseable_section_end "nodeinstall"
|
|
576
|
+
- cd api
|
|
577
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
578
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
579
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
580
|
+
- collapseable_section_end "nodeinstall"
|
|
581
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
582
|
+
- yarn install --immutable --inline-builds
|
|
583
|
+
- collapseable_section_end "yarninstall"
|
|
584
|
+
- yarn lint
|
|
585
|
+
cache:
|
|
586
|
+
- key: api-yarn-mr$CI_MERGE_REQUEST_IID
|
|
587
|
+
policy: pull-push
|
|
588
|
+
paths:
|
|
589
|
+
- api/.yarn
|
|
590
|
+
fallback_keys:
|
|
591
|
+
- api-yarn
|
|
592
|
+
- key: api-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
593
|
+
policy: pull-push
|
|
594
|
+
paths:
|
|
595
|
+
- api/node_modules
|
|
596
|
+
fallback_keys:
|
|
597
|
+
- api-node-modules
|
|
598
|
+
rules:
|
|
599
|
+
- when: never
|
|
600
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
601
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
602
|
+
needs: []
|
|
603
|
+
retry: *a1
|
|
604
|
+
interruptible: true
|
|
605
|
+
'api 🧪 test | review ':
|
|
606
|
+
stage: test
|
|
607
|
+
image: path/to/docker/jobs-testing-chrome:the-version
|
|
608
|
+
variables:
|
|
609
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
610
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
611
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
612
|
+
script:
|
|
613
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
614
|
+
- export APP_PATH="api"
|
|
615
|
+
- collapseable_section_end "injectvars"
|
|
616
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
617
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
618
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
619
|
+
- collapseable_section_end "nodeinstall"
|
|
620
|
+
- cd api
|
|
621
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
622
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
623
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
624
|
+
- collapseable_section_end "nodeinstall"
|
|
625
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
626
|
+
- yarn install --immutable --inline-builds
|
|
627
|
+
- collapseable_section_end "yarninstall"
|
|
628
|
+
- yarn test
|
|
629
|
+
cache:
|
|
630
|
+
- key: api-yarn-mr$CI_MERGE_REQUEST_IID
|
|
631
|
+
policy: pull-push
|
|
632
|
+
paths:
|
|
633
|
+
- api/.yarn
|
|
634
|
+
fallback_keys:
|
|
635
|
+
- api-yarn
|
|
636
|
+
- key: api-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
637
|
+
policy: pull-push
|
|
638
|
+
paths:
|
|
639
|
+
- api/node_modules
|
|
640
|
+
fallback_keys:
|
|
641
|
+
- api-node-modules
|
|
642
|
+
rules:
|
|
643
|
+
- when: never
|
|
644
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
645
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
646
|
+
needs: []
|
|
647
|
+
retry: *a1
|
|
648
|
+
interruptible: true
|
|
548
649
|
'api 🔨 app | review ':
|
|
549
650
|
stage: build
|
|
550
651
|
image: path/to/docker/jobs-default:the-version
|
|
@@ -600,18 +701,22 @@ api 🧪 test:
|
|
|
600
701
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
601
702
|
- collapseable_section_end "nodeinstall"
|
|
602
703
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
603
|
-
- yarn install --immutable
|
|
704
|
+
- yarn install --immutable --inline-builds
|
|
604
705
|
- collapseable_section_end "yarninstall"
|
|
605
706
|
- yarn build
|
|
606
707
|
cache:
|
|
607
|
-
- key: api-yarn
|
|
708
|
+
- key: api-yarn-mr$CI_MERGE_REQUEST_IID
|
|
608
709
|
policy: pull-push
|
|
609
710
|
paths:
|
|
610
711
|
- api/.yarn
|
|
611
|
-
|
|
712
|
+
fallback_keys:
|
|
713
|
+
- api-yarn
|
|
714
|
+
- key: api-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
612
715
|
policy: pull-push
|
|
613
716
|
paths:
|
|
614
717
|
- api/node_modules
|
|
718
|
+
fallback_keys:
|
|
719
|
+
- api-node-modules
|
|
615
720
|
artifacts:
|
|
616
721
|
paths:
|
|
617
722
|
- api/__build_info.json
|
|
@@ -655,7 +760,8 @@ api 🧪 test:
|
|
|
655
760
|
- export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
|
|
656
761
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
657
762
|
- |-
|
|
658
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
763
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
764
|
+
COPY --chown=node:node $APP_DIR .
|
|
659
765
|
RUN yarn plugin import workspace-tools
|
|
660
766
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
661
767
|
- |-
|
|
@@ -678,10 +784,12 @@ api 🧪 test:
|
|
|
678
784
|
- docker push $DOCKER_CACHE_IMAGE
|
|
679
785
|
- collapseable_section_end "docker-push"
|
|
680
786
|
cache:
|
|
681
|
-
- key: api-yarn
|
|
787
|
+
- key: api-yarn-mr$CI_MERGE_REQUEST_IID
|
|
682
788
|
policy: pull
|
|
683
789
|
paths:
|
|
684
790
|
- api/.yarn
|
|
791
|
+
fallback_keys:
|
|
792
|
+
- api-yarn
|
|
685
793
|
rules:
|
|
686
794
|
- when: never
|
|
687
795
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -825,17 +933,17 @@ api 🧪 test:
|
|
|
825
933
|
- when: on_success
|
|
826
934
|
if: $CI_MERGE_REQUEST_ID
|
|
827
935
|
needs:
|
|
828
|
-
- job: api 👮 lint
|
|
936
|
+
- job: 'api 👮 lint | review '
|
|
829
937
|
artifacts: false
|
|
830
938
|
- job: 'api 🔨 app | review '
|
|
831
939
|
artifacts: false
|
|
832
940
|
- job: 'api 🔨 docker | review '
|
|
833
941
|
artifacts: false
|
|
834
|
-
- job: api 🧪 test
|
|
942
|
+
- job: 'api 🧪 test | review '
|
|
835
943
|
artifacts: false
|
|
836
944
|
- job: 'api 🧾 sbom | review '
|
|
837
945
|
artifacts: true
|
|
838
|
-
- job: api 🛡 audit
|
|
946
|
+
- job: 'api 🛡 audit | review '
|
|
839
947
|
artifacts: false
|
|
840
948
|
retry: *a1
|
|
841
949
|
interruptible: true
|
|
@@ -934,7 +1042,7 @@ api 🧪 test:
|
|
|
934
1042
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
935
1043
|
- collapseable_section_end "nodeinstall"
|
|
936
1044
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
937
|
-
- yarn install --immutable
|
|
1045
|
+
- yarn install --immutable --inline-builds
|
|
938
1046
|
- collapseable_section_end "yarninstall"
|
|
939
1047
|
- yarn build
|
|
940
1048
|
cache:
|
|
@@ -989,7 +1097,8 @@ api 🧪 test:
|
|
|
989
1097
|
- export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
|
|
990
1098
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
991
1099
|
- |-
|
|
992
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
1100
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
1101
|
+
COPY --chown=node:node $APP_DIR .
|
|
993
1102
|
RUN yarn plugin import workspace-tools
|
|
994
1103
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
995
1104
|
- |-
|
|
@@ -1255,7 +1364,7 @@ api 🧪 test:
|
|
|
1255
1364
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
1256
1365
|
- collapseable_section_end "nodeinstall"
|
|
1257
1366
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
1258
|
-
- yarn install --immutable
|
|
1367
|
+
- yarn install --immutable --inline-builds
|
|
1259
1368
|
- collapseable_section_end "yarninstall"
|
|
1260
1369
|
- yarn build
|
|
1261
1370
|
cache:
|
|
@@ -1310,7 +1419,8 @@ api 🧪 test:
|
|
|
1310
1419
|
- export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api"
|
|
1311
1420
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
1312
1421
|
- |-
|
|
1313
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
1422
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
1423
|
+
COPY --chown=node:node $APP_DIR .
|
|
1314
1424
|
RUN yarn plugin import workspace-tools
|
|
1315
1425
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
1316
1426
|
- |-
|
|
@@ -156,7 +156,7 @@ before_script:
|
|
|
156
156
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
157
157
|
- collapseable_section_end "nodeinstall"
|
|
158
158
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
159
|
-
- yarn install --immutable
|
|
159
|
+
- yarn install --immutable --inline-builds
|
|
160
160
|
- collapseable_section_end "yarninstall"
|
|
161
161
|
- yarn build-storybook --quiet -o ./dist
|
|
162
162
|
cache:
|
|
@@ -215,7 +215,8 @@ before_script:
|
|
|
215
215
|
- export DOCKER_CACHE_IMAGE="asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/api"
|
|
216
216
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
217
217
|
- |-
|
|
218
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
218
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
219
|
+
COPY --chown=node:node $APP_DIR .
|
|
219
220
|
RUN yarn plugin import workspace-tools
|
|
220
221
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
221
222
|
- |-
|
|
@@ -464,18 +465,22 @@ before_script:
|
|
|
464
465
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
465
466
|
- collapseable_section_end "nodeinstall"
|
|
466
467
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
467
|
-
- yarn install --immutable
|
|
468
|
+
- yarn install --immutable --inline-builds
|
|
468
469
|
- collapseable_section_end "yarninstall"
|
|
469
470
|
- yarn build-storybook --quiet -o ./dist
|
|
470
471
|
cache:
|
|
471
|
-
- key: app-yarn
|
|
472
|
+
- key: app-yarn-mr$CI_MERGE_REQUEST_IID
|
|
472
473
|
policy: pull-push
|
|
473
474
|
paths:
|
|
474
475
|
- app/.yarn
|
|
475
|
-
|
|
476
|
+
fallback_keys:
|
|
477
|
+
- app-yarn
|
|
478
|
+
- key: app-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
476
479
|
policy: pull-push
|
|
477
480
|
paths:
|
|
478
481
|
- app/node_modules
|
|
482
|
+
fallback_keys:
|
|
483
|
+
- app-node-modules
|
|
479
484
|
artifacts:
|
|
480
485
|
paths:
|
|
481
486
|
- app/__build_info.json
|
|
@@ -519,7 +524,8 @@ before_script:
|
|
|
519
524
|
- export DOCKER_CACHE_IMAGE="asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/api"
|
|
520
525
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
521
526
|
- |-
|
|
522
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
527
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
528
|
+
COPY --chown=node:node $APP_DIR .
|
|
523
529
|
RUN yarn plugin import workspace-tools
|
|
524
530
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
525
531
|
- |-
|
|
@@ -542,10 +548,12 @@ before_script:
|
|
|
542
548
|
- docker push $DOCKER_CACHE_IMAGE
|
|
543
549
|
- collapseable_section_end "docker-push"
|
|
544
550
|
cache:
|
|
545
|
-
- key: app-yarn
|
|
551
|
+
- key: app-yarn-mr$CI_MERGE_REQUEST_IID
|
|
546
552
|
policy: pull
|
|
547
553
|
paths:
|
|
548
554
|
- app/.yarn
|
|
555
|
+
fallback_keys:
|
|
556
|
+
- app-yarn
|
|
549
557
|
rules:
|
|
550
558
|
- when: never
|
|
551
559
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -774,7 +782,7 @@ before_script:
|
|
|
774
782
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
775
783
|
- collapseable_section_end "nodeinstall"
|
|
776
784
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
777
|
-
- yarn install --immutable
|
|
785
|
+
- yarn install --immutable --inline-builds
|
|
778
786
|
- collapseable_section_end "yarninstall"
|
|
779
787
|
- yarn build-storybook --quiet -o ./dist
|
|
780
788
|
cache:
|
|
@@ -829,7 +837,8 @@ before_script:
|
|
|
829
837
|
- export DOCKER_CACHE_IMAGE="asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/api"
|
|
830
838
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
831
839
|
- |-
|
|
832
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
840
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
841
|
+
COPY --chown=node:node $APP_DIR .
|
|
833
842
|
RUN yarn plugin import workspace-tools
|
|
834
843
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
835
844
|
- |-
|
|
@@ -1077,7 +1086,7 @@ before_script:
|
|
|
1077
1086
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
1078
1087
|
- collapseable_section_end "nodeinstall"
|
|
1079
1088
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
1080
|
-
- yarn install --immutable
|
|
1089
|
+
- yarn install --immutable --inline-builds
|
|
1081
1090
|
- collapseable_section_end "yarninstall"
|
|
1082
1091
|
- yarn build-storybook --quiet -o ./dist
|
|
1083
1092
|
cache:
|
|
@@ -1132,7 +1141,8 @@ before_script:
|
|
|
1132
1141
|
- export DOCKER_CACHE_IMAGE="asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/api"
|
|
1133
1142
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
1134
1143
|
- |-
|
|
1135
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
1144
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
1145
|
+
COPY --chown=node:node $APP_DIR .
|
|
1136
1146
|
RUN yarn plugin import workspace-tools
|
|
1137
1147
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
1138
1148
|
- |-
|