@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
|
-
web 🛡 audit:
|
|
106
|
+
'web 🛡 audit | dev ':
|
|
107
107
|
stage: test
|
|
108
108
|
image: path/to/docker/jobs-default:the-version
|
|
109
109
|
variables:
|
|
@@ -120,9 +120,6 @@ web 🛡 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 @@ web 🛡 audit:
|
|
|
131
128
|
- stuck_or_timeout_failure
|
|
132
129
|
interruptible: true
|
|
133
130
|
allow_failure: true
|
|
134
|
-
web 👮 lint:
|
|
131
|
+
'web 👮 lint | dev ':
|
|
135
132
|
stage: test
|
|
136
133
|
image: path/to/docker/jobs-default:the-version
|
|
137
134
|
variables:
|
|
@@ -152,7 +149,7 @@ web 👮 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 @@ web 👮 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
|
-
web 🧪 test:
|
|
171
|
+
'web 🧪 test | dev ':
|
|
178
172
|
stage: test
|
|
179
173
|
image: path/to/docker/jobs-testing-chrome:the-version
|
|
180
174
|
variables:
|
|
@@ -195,7 +189,7 @@ web 🧪 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 @@ web 🧪 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
|
|
@@ -271,7 +262,7 @@ web 🧪 test:
|
|
|
271
262
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
272
263
|
- collapseable_section_end "nodeinstall"
|
|
273
264
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
274
|
-
- yarn install --immutable
|
|
265
|
+
- yarn install --immutable --inline-builds
|
|
275
266
|
- collapseable_section_end "yarninstall"
|
|
276
267
|
- echo "add healthcheck package"
|
|
277
268
|
- meteor add panter:healthroute --allow-superuser
|
|
@@ -476,17 +467,17 @@ web 🧪 test:
|
|
|
476
467
|
- when: on_success
|
|
477
468
|
if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
478
469
|
needs:
|
|
479
|
-
- job: web 👮 lint
|
|
470
|
+
- job: 'web 👮 lint | dev '
|
|
480
471
|
artifacts: false
|
|
481
472
|
- job: 'web 🔨 app | dev '
|
|
482
473
|
artifacts: false
|
|
483
474
|
- job: 'web 🔨 docker | dev '
|
|
484
475
|
artifacts: false
|
|
485
|
-
- job: web 🧪 test
|
|
476
|
+
- job: 'web 🧪 test | dev '
|
|
486
477
|
artifacts: false
|
|
487
478
|
- job: 'web 🧾 sbom | dev '
|
|
488
479
|
artifacts: true
|
|
489
|
-
- job: web 🛡 audit
|
|
480
|
+
- job: 'web 🛡 audit | dev '
|
|
490
481
|
artifacts: false
|
|
491
482
|
retry: *a1
|
|
492
483
|
interruptible: true
|
|
@@ -526,6 +517,115 @@ web 🧪 test:
|
|
|
526
517
|
retry: *a1
|
|
527
518
|
interruptible: true
|
|
528
519
|
allow_failure: true
|
|
520
|
+
'web 🛡 audit | review ':
|
|
521
|
+
stage: test
|
|
522
|
+
image: path/to/docker/jobs-default:the-version
|
|
523
|
+
variables:
|
|
524
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
525
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
526
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
527
|
+
script:
|
|
528
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
529
|
+
- export APP_PATH="web"
|
|
530
|
+
- collapseable_section_end "injectvars"
|
|
531
|
+
- cd web
|
|
532
|
+
- yarn npm audit --environment production
|
|
533
|
+
rules:
|
|
534
|
+
- when: never
|
|
535
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
536
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
537
|
+
needs: []
|
|
538
|
+
retry: *a1
|
|
539
|
+
interruptible: true
|
|
540
|
+
allow_failure: true
|
|
541
|
+
'web 👮 lint | review ':
|
|
542
|
+
stage: test
|
|
543
|
+
image: path/to/docker/jobs-default:the-version
|
|
544
|
+
variables:
|
|
545
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
546
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
547
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
548
|
+
script:
|
|
549
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
550
|
+
- export APP_PATH="web"
|
|
551
|
+
- collapseable_section_end "injectvars"
|
|
552
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
553
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
554
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
555
|
+
- collapseable_section_end "nodeinstall"
|
|
556
|
+
- cd web
|
|
557
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
558
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
559
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
560
|
+
- collapseable_section_end "nodeinstall"
|
|
561
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
562
|
+
- yarn install --immutable --inline-builds
|
|
563
|
+
- collapseable_section_end "yarninstall"
|
|
564
|
+
- yarn lint
|
|
565
|
+
cache:
|
|
566
|
+
- key: web-yarn-mr$CI_MERGE_REQUEST_IID
|
|
567
|
+
policy: pull-push
|
|
568
|
+
paths:
|
|
569
|
+
- web/.yarn
|
|
570
|
+
fallback_keys:
|
|
571
|
+
- web-yarn
|
|
572
|
+
- key: web-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
573
|
+
policy: pull-push
|
|
574
|
+
paths:
|
|
575
|
+
- web/node_modules
|
|
576
|
+
fallback_keys:
|
|
577
|
+
- web-node-modules
|
|
578
|
+
rules:
|
|
579
|
+
- when: never
|
|
580
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
581
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
582
|
+
needs: []
|
|
583
|
+
retry: *a1
|
|
584
|
+
interruptible: true
|
|
585
|
+
'web 🧪 test | review ':
|
|
586
|
+
stage: test
|
|
587
|
+
image: path/to/docker/jobs-testing-chrome:the-version
|
|
588
|
+
variables:
|
|
589
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
590
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
591
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
592
|
+
script:
|
|
593
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
594
|
+
- export APP_PATH="web"
|
|
595
|
+
- collapseable_section_end "injectvars"
|
|
596
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
597
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
598
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
599
|
+
- collapseable_section_end "nodeinstall"
|
|
600
|
+
- cd web
|
|
601
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
602
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
603
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
604
|
+
- collapseable_section_end "nodeinstall"
|
|
605
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
606
|
+
- yarn install --immutable --inline-builds
|
|
607
|
+
- collapseable_section_end "yarninstall"
|
|
608
|
+
- yarn test
|
|
609
|
+
cache:
|
|
610
|
+
- key: web-yarn-mr$CI_MERGE_REQUEST_IID
|
|
611
|
+
policy: pull-push
|
|
612
|
+
paths:
|
|
613
|
+
- web/.yarn
|
|
614
|
+
fallback_keys:
|
|
615
|
+
- web-yarn
|
|
616
|
+
- key: web-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
617
|
+
policy: pull-push
|
|
618
|
+
paths:
|
|
619
|
+
- web/node_modules
|
|
620
|
+
fallback_keys:
|
|
621
|
+
- web-node-modules
|
|
622
|
+
rules:
|
|
623
|
+
- when: never
|
|
624
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
625
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
626
|
+
needs: []
|
|
627
|
+
retry: *a1
|
|
628
|
+
interruptible: true
|
|
529
629
|
'web 🔨 app | review ':
|
|
530
630
|
stage: build
|
|
531
631
|
image: path/to/docker/jobs-meteor:the-version
|
|
@@ -580,7 +680,7 @@ web 🧪 test:
|
|
|
580
680
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
581
681
|
- collapseable_section_end "nodeinstall"
|
|
582
682
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
583
|
-
- yarn install --immutable
|
|
683
|
+
- yarn install --immutable --inline-builds
|
|
584
684
|
- collapseable_section_end "yarninstall"
|
|
585
685
|
- echo "add healthcheck package"
|
|
586
686
|
- meteor add panter:healthroute --allow-superuser
|
|
@@ -588,21 +688,27 @@ web 🧪 test:
|
|
|
588
688
|
- TOOL_NODE_FLAGS="--max_old_space_size=3584 --min_semi_space_size=8 --max_semi_space_size=256 --optimize_for_size" meteor build ./dist --architecture os.linux.x86_64 --allow-superuser --server-only --directory
|
|
589
689
|
- cp ./__build_info.json ./dist/bundle/programs/server
|
|
590
690
|
cache:
|
|
591
|
-
- key: web-yarn
|
|
691
|
+
- key: web-yarn-mr$CI_MERGE_REQUEST_IID
|
|
592
692
|
policy: pull-push
|
|
593
693
|
paths:
|
|
594
694
|
- web/.yarn
|
|
595
|
-
|
|
695
|
+
fallback_keys:
|
|
696
|
+
- web-yarn
|
|
697
|
+
- key: web-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
596
698
|
policy: pull-push
|
|
597
699
|
paths:
|
|
598
700
|
- web/node_modules
|
|
599
|
-
|
|
701
|
+
fallback_keys:
|
|
702
|
+
- web-node-modules
|
|
703
|
+
- key: web-meteor-build-cache-mr$CI_MERGE_REQUEST_IID
|
|
600
704
|
policy: pull-push
|
|
601
705
|
paths:
|
|
602
706
|
- web/.meteor/local/resolver-result-cache.json
|
|
603
707
|
- web/.meteor/local/plugin-cache
|
|
604
708
|
- web/.meteor/local/isopacks
|
|
605
709
|
- web/.meteor/local/bundler-cache/scanner
|
|
710
|
+
fallback_keys:
|
|
711
|
+
- web-meteor-build-cache
|
|
606
712
|
artifacts:
|
|
607
713
|
paths:
|
|
608
714
|
- web/__build_info.json
|
|
@@ -788,17 +894,17 @@ web 🧪 test:
|
|
|
788
894
|
- when: on_success
|
|
789
895
|
if: $CI_MERGE_REQUEST_ID
|
|
790
896
|
needs:
|
|
791
|
-
- job: web 👮 lint
|
|
897
|
+
- job: 'web 👮 lint | review '
|
|
792
898
|
artifacts: false
|
|
793
899
|
- job: 'web 🔨 app | review '
|
|
794
900
|
artifacts: false
|
|
795
901
|
- job: 'web 🔨 docker | review '
|
|
796
902
|
artifacts: false
|
|
797
|
-
- job: web 🧪 test
|
|
903
|
+
- job: 'web 🧪 test | review '
|
|
798
904
|
artifacts: false
|
|
799
905
|
- job: 'web 🧾 sbom | review '
|
|
800
906
|
artifacts: true
|
|
801
|
-
- job: web 🛡 audit
|
|
907
|
+
- job: 'web 🛡 audit | review '
|
|
802
908
|
artifacts: false
|
|
803
909
|
retry: *a1
|
|
804
910
|
interruptible: true
|
|
@@ -895,7 +1001,7 @@ web 🧪 test:
|
|
|
895
1001
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
896
1002
|
- collapseable_section_end "nodeinstall"
|
|
897
1003
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
898
|
-
- yarn install --immutable
|
|
1004
|
+
- yarn install --immutable --inline-builds
|
|
899
1005
|
- collapseable_section_end "yarninstall"
|
|
900
1006
|
- echo "add healthcheck package"
|
|
901
1007
|
- meteor add panter:healthroute --allow-superuser
|
|
@@ -1197,7 +1303,7 @@ web 🧪 test:
|
|
|
1197
1303
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
1198
1304
|
- collapseable_section_end "nodeinstall"
|
|
1199
1305
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
1200
|
-
- yarn install --immutable
|
|
1306
|
+
- yarn install --immutable --inline-builds
|
|
1201
1307
|
- collapseable_section_end "yarninstall"
|
|
1202
1308
|
- echo "add healthcheck package"
|
|
1203
1309
|
- meteor add panter:healthroute --allow-superuser
|
|
@@ -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
|
-
www 🛡 audit:
|
|
106
|
+
'www 🛡 audit | dev ':
|
|
107
107
|
stage: test
|
|
108
108
|
image: path/to/docker/jobs-default:the-version
|
|
109
109
|
variables:
|
|
@@ -120,9 +120,6 @@ www 🛡 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 @@ www 🛡 audit:
|
|
|
131
128
|
- stuck_or_timeout_failure
|
|
132
129
|
interruptible: true
|
|
133
130
|
allow_failure: true
|
|
134
|
-
www 👮 lint:
|
|
131
|
+
'www 👮 lint | dev ':
|
|
135
132
|
stage: test
|
|
136
133
|
image: path/to/docker/jobs-default:the-version
|
|
137
134
|
variables:
|
|
@@ -152,7 +149,7 @@ www 👮 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 @@ www 👮 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
|
-
www 🧪 test:
|
|
171
|
+
'www 🧪 test | dev ':
|
|
178
172
|
stage: test
|
|
179
173
|
image: path/to/docker/jobs-testing-chrome:the-version
|
|
180
174
|
variables:
|
|
@@ -195,7 +189,7 @@ www 🧪 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 @@ www 🧪 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
|
|
@@ -270,7 +261,7 @@ www 🧪 test:
|
|
|
270
261
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
271
262
|
- collapseable_section_end "nodeinstall"
|
|
272
263
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
273
|
-
- yarn install --immutable
|
|
264
|
+
- yarn install --immutable --inline-builds
|
|
274
265
|
- collapseable_section_end "yarninstall"
|
|
275
266
|
- yarn build
|
|
276
267
|
cache:
|
|
@@ -329,7 +320,8 @@ www 🧪 test:
|
|
|
329
320
|
- export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
|
|
330
321
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
331
322
|
- |-
|
|
332
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
323
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
324
|
+
COPY --chown=node:node $APP_DIR .
|
|
333
325
|
RUN yarn plugin import workspace-tools
|
|
334
326
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
335
327
|
- |-
|
|
@@ -482,17 +474,17 @@ www 🧪 test:
|
|
|
482
474
|
- when: on_success
|
|
483
475
|
if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
484
476
|
needs:
|
|
485
|
-
- job: www 👮 lint
|
|
477
|
+
- job: 'www 👮 lint | dev '
|
|
486
478
|
artifacts: false
|
|
487
479
|
- job: 'www 🔨 app | dev '
|
|
488
480
|
artifacts: false
|
|
489
481
|
- job: 'www 🔨 docker | dev '
|
|
490
482
|
artifacts: false
|
|
491
|
-
- job: www 🧪 test
|
|
483
|
+
- job: 'www 🧪 test | dev '
|
|
492
484
|
artifacts: false
|
|
493
485
|
- job: 'www 🧾 sbom | dev '
|
|
494
486
|
artifacts: true
|
|
495
|
-
- job: www 🛡 audit
|
|
487
|
+
- job: 'www 🛡 audit | dev '
|
|
496
488
|
artifacts: false
|
|
497
489
|
retry: *a1
|
|
498
490
|
interruptible: true
|
|
@@ -531,6 +523,115 @@ www 🧪 test:
|
|
|
531
523
|
retry: *a1
|
|
532
524
|
interruptible: true
|
|
533
525
|
allow_failure: true
|
|
526
|
+
'www 🛡 audit | review ':
|
|
527
|
+
stage: test
|
|
528
|
+
image: path/to/docker/jobs-default:the-version
|
|
529
|
+
variables:
|
|
530
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
531
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
532
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
533
|
+
script:
|
|
534
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
535
|
+
- export APP_PATH="www"
|
|
536
|
+
- collapseable_section_end "injectvars"
|
|
537
|
+
- cd www
|
|
538
|
+
- yarn npm audit --environment production
|
|
539
|
+
rules:
|
|
540
|
+
- when: never
|
|
541
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
542
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
543
|
+
needs: []
|
|
544
|
+
retry: *a1
|
|
545
|
+
interruptible: true
|
|
546
|
+
allow_failure: true
|
|
547
|
+
'www 👮 lint | review ':
|
|
548
|
+
stage: test
|
|
549
|
+
image: path/to/docker/jobs-default:the-version
|
|
550
|
+
variables:
|
|
551
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
552
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
553
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
554
|
+
script:
|
|
555
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
556
|
+
- export APP_PATH="www"
|
|
557
|
+
- collapseable_section_end "injectvars"
|
|
558
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
559
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
560
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
561
|
+
- collapseable_section_end "nodeinstall"
|
|
562
|
+
- cd www
|
|
563
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
564
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
565
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
566
|
+
- collapseable_section_end "nodeinstall"
|
|
567
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
568
|
+
- yarn install --immutable --inline-builds
|
|
569
|
+
- collapseable_section_end "yarninstall"
|
|
570
|
+
- yarn lint
|
|
571
|
+
cache:
|
|
572
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
573
|
+
policy: pull-push
|
|
574
|
+
paths:
|
|
575
|
+
- www/.yarn
|
|
576
|
+
fallback_keys:
|
|
577
|
+
- www-yarn
|
|
578
|
+
- key: www-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
579
|
+
policy: pull-push
|
|
580
|
+
paths:
|
|
581
|
+
- www/node_modules
|
|
582
|
+
fallback_keys:
|
|
583
|
+
- www-node-modules
|
|
584
|
+
rules:
|
|
585
|
+
- when: never
|
|
586
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
587
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
588
|
+
needs: []
|
|
589
|
+
retry: *a1
|
|
590
|
+
interruptible: true
|
|
591
|
+
'www 🧪 test | review ':
|
|
592
|
+
stage: test
|
|
593
|
+
image: path/to/docker/jobs-testing-chrome:the-version
|
|
594
|
+
variables:
|
|
595
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
596
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
597
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
598
|
+
script:
|
|
599
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
600
|
+
- export APP_PATH="www"
|
|
601
|
+
- collapseable_section_end "injectvars"
|
|
602
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
603
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
604
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
605
|
+
- collapseable_section_end "nodeinstall"
|
|
606
|
+
- cd www
|
|
607
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
608
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
609
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
610
|
+
- collapseable_section_end "nodeinstall"
|
|
611
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
612
|
+
- yarn install --immutable --inline-builds
|
|
613
|
+
- collapseable_section_end "yarninstall"
|
|
614
|
+
- yarn test
|
|
615
|
+
cache:
|
|
616
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
617
|
+
policy: pull-push
|
|
618
|
+
paths:
|
|
619
|
+
- www/.yarn
|
|
620
|
+
fallback_keys:
|
|
621
|
+
- www-yarn
|
|
622
|
+
- key: www-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
623
|
+
policy: pull-push
|
|
624
|
+
paths:
|
|
625
|
+
- www/node_modules
|
|
626
|
+
fallback_keys:
|
|
627
|
+
- www-node-modules
|
|
628
|
+
rules:
|
|
629
|
+
- when: never
|
|
630
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
631
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
632
|
+
needs: []
|
|
633
|
+
retry: *a1
|
|
634
|
+
interruptible: true
|
|
534
635
|
'www 🔨 app | review ':
|
|
535
636
|
stage: build
|
|
536
637
|
image: path/to/docker/jobs-default:the-version
|
|
@@ -584,22 +685,28 @@ www 🧪 test:
|
|
|
584
685
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
585
686
|
- collapseable_section_end "nodeinstall"
|
|
586
687
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
587
|
-
- yarn install --immutable
|
|
688
|
+
- yarn install --immutable --inline-builds
|
|
588
689
|
- collapseable_section_end "yarninstall"
|
|
589
690
|
- yarn build
|
|
590
691
|
cache:
|
|
591
|
-
- key: www-yarn
|
|
692
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
592
693
|
policy: pull-push
|
|
593
694
|
paths:
|
|
594
695
|
- www/.yarn
|
|
595
|
-
|
|
696
|
+
fallback_keys:
|
|
697
|
+
- www-yarn
|
|
698
|
+
- key: www-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
596
699
|
policy: pull-push
|
|
597
700
|
paths:
|
|
598
701
|
- www/node_modules
|
|
599
|
-
|
|
702
|
+
fallback_keys:
|
|
703
|
+
- www-node-modules
|
|
704
|
+
- key: www-default-mr$CI_MERGE_REQUEST_IID
|
|
600
705
|
policy: pull-push
|
|
601
706
|
paths:
|
|
602
707
|
- www/.next/cache
|
|
708
|
+
fallback_keys:
|
|
709
|
+
- www-default
|
|
603
710
|
artifacts:
|
|
604
711
|
paths:
|
|
605
712
|
- www/__build_info.json
|
|
@@ -643,7 +750,8 @@ www 🧪 test:
|
|
|
643
750
|
- export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
|
|
644
751
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
645
752
|
- |-
|
|
646
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
753
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
754
|
+
COPY --chown=node:node $APP_DIR .
|
|
647
755
|
RUN yarn plugin import workspace-tools
|
|
648
756
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
649
757
|
- |-
|
|
@@ -666,10 +774,12 @@ www 🧪 test:
|
|
|
666
774
|
- docker push $DOCKER_CACHE_IMAGE
|
|
667
775
|
- collapseable_section_end "docker-push"
|
|
668
776
|
cache:
|
|
669
|
-
- key: www-yarn
|
|
777
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
670
778
|
policy: pull
|
|
671
779
|
paths:
|
|
672
780
|
- www/.yarn
|
|
781
|
+
fallback_keys:
|
|
782
|
+
- www-yarn
|
|
673
783
|
rules:
|
|
674
784
|
- when: never
|
|
675
785
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -799,17 +909,17 @@ www 🧪 test:
|
|
|
799
909
|
- when: on_success
|
|
800
910
|
if: $CI_MERGE_REQUEST_ID
|
|
801
911
|
needs:
|
|
802
|
-
- job: www 👮 lint
|
|
912
|
+
- job: 'www 👮 lint | review '
|
|
803
913
|
artifacts: false
|
|
804
914
|
- job: 'www 🔨 app | review '
|
|
805
915
|
artifacts: false
|
|
806
916
|
- job: 'www 🔨 docker | review '
|
|
807
917
|
artifacts: false
|
|
808
|
-
- job: www 🧪 test
|
|
918
|
+
- job: 'www 🧪 test | review '
|
|
809
919
|
artifacts: false
|
|
810
920
|
- job: 'www 🧾 sbom | review '
|
|
811
921
|
artifacts: true
|
|
812
|
-
- job: www 🛡 audit
|
|
922
|
+
- job: 'www 🛡 audit | review '
|
|
813
923
|
artifacts: false
|
|
814
924
|
retry: *a1
|
|
815
925
|
interruptible: true
|
|
@@ -904,7 +1014,7 @@ www 🧪 test:
|
|
|
904
1014
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
905
1015
|
- collapseable_section_end "nodeinstall"
|
|
906
1016
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
907
|
-
- yarn install --immutable
|
|
1017
|
+
- yarn install --immutable --inline-builds
|
|
908
1018
|
- collapseable_section_end "yarninstall"
|
|
909
1019
|
- yarn build
|
|
910
1020
|
cache:
|
|
@@ -963,7 +1073,8 @@ www 🧪 test:
|
|
|
963
1073
|
- export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
|
|
964
1074
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
965
1075
|
- |-
|
|
966
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
1076
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
1077
|
+
COPY --chown=node:node $APP_DIR .
|
|
967
1078
|
RUN yarn plugin import workspace-tools
|
|
968
1079
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
969
1080
|
- |-
|
|
@@ -1211,7 +1322,7 @@ www 🧪 test:
|
|
|
1211
1322
|
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
1212
1323
|
- collapseable_section_end "nodeinstall"
|
|
1213
1324
|
- collapseable_section_start "yarninstall" "Yarn install"
|
|
1214
|
-
- yarn install --immutable
|
|
1325
|
+
- yarn install --immutable --inline-builds
|
|
1215
1326
|
- collapseable_section_end "yarninstall"
|
|
1216
1327
|
- yarn build
|
|
1217
1328
|
cache:
|
|
@@ -1270,7 +1381,8 @@ www 🧪 test:
|
|
|
1270
1381
|
- export DOCKER_CACHE_IMAGE="europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/www"
|
|
1271
1382
|
- export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
|
|
1272
1383
|
- |-
|
|
1273
|
-
export DOCKER_COPY_AND_INSTALL_APP="
|
|
1384
|
+
export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
|
|
1385
|
+
COPY --chown=node:node $APP_DIR .
|
|
1274
1386
|
RUN yarn plugin import workspace-tools
|
|
1275
1387
|
RUN yarn workspaces focus --production && yarn rebuild"
|
|
1276
1388
|
- |-
|