@catladder/pipeline 1.119.0 → 1.121.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 (29) hide show
  1. package/dist/build/node/yarn.js +3 -2
  2. package/dist/bundles/catladder-gitlab/index.js +1 -1
  3. package/dist/constants.js +1 -1
  4. package/dist/deploy/cloudRun/deployJob.js +2 -1
  5. package/dist/deploy/types/googleCloudRun.d.ts +12 -1
  6. package/dist/tsconfig.tsbuildinfo +1 -1
  7. package/examples/__snapshots__/cloud-run-memory-limit.ts.snap +44 -4
  8. package/examples/__snapshots__/cloud-run-no-cpu-throttling.ts.snap +44 -4
  9. package/examples/__snapshots__/cloud-run-non-public.ts.snap +44 -4
  10. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.ts.snap +88 -8
  11. package/examples/__snapshots__/cloud-run-with-sql.ts.snap +88 -8
  12. package/examples/__snapshots__/custom-build-job-with-tests.ts.snap +12 -4
  13. package/examples/__snapshots__/custom-build-job.ts.snap +12 -4
  14. package/examples/__snapshots__/custom-deploy.ts.snap +40 -0
  15. package/examples/__snapshots__/custom-envs.ts.snap +52 -0
  16. package/examples/__snapshots__/custom-sbom-java.ts.snap +12 -4
  17. package/examples/__snapshots__/kubernetes-application-customization.ts.snap +40 -0
  18. package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.ts.snap +40 -0
  19. package/examples/__snapshots__/kubernetes-with-cloud-sql.ts.snap +40 -0
  20. package/examples/__snapshots__/kubernetes-with-jobs.ts.snap +80 -0
  21. package/examples/__snapshots__/kubernetes-with-mongodb.ts.snap +40 -0
  22. package/examples/__snapshots__/meteor-kubernetes.ts.snap +40 -0
  23. package/examples/__snapshots__/native-app.ts.snap +84 -4
  24. package/examples/__snapshots__/node-build-with-custom-image.ts.snap +44 -4
  25. package/examples/__snapshots__/wait-for-other-deploy.ts.snap +80 -0
  26. package/package.json +1 -1
  27. package/src/build/node/yarn.ts +14 -6
  28. package/src/deploy/cloudRun/deployJob.ts +1 -0
  29. package/src/deploy/types/googleCloudRun.ts +13 -1
@@ -34,9 +34,13 @@ exports[`matches snapshot 1`] = `
34
34
  },
35
35
  "script": [
36
36
  "cd www",
37
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
38
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
37
39
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
38
40
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
41
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
39
42
  "yarn install --immutable",
43
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
40
44
  "yarn lint",
41
45
  ],
42
46
  "stage": "test",
@@ -96,12 +100,18 @@ exports[`matches snapshot 1`] = `
96
100
  },
97
101
  "script": [
98
102
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > www/__build_info.json",
103
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
99
104
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
100
105
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
106
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
101
107
  "cd www",
108
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
109
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
102
110
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
103
111
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
112
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
104
113
  "yarn install --immutable",
114
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
105
115
  "yarn build",
106
116
  ],
107
117
  "stage": "build",
@@ -364,9 +374,13 @@ COPY --chown=node:node .yarn /app/.yarn",
364
374
  },
365
375
  "script": [
366
376
  "cd www",
377
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
378
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
367
379
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
368
380
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
381
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
369
382
  "yarn install --immutable",
383
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
370
384
  "yarn test",
371
385
  ],
372
386
  "stage": "test",
@@ -502,9 +516,13 @@ COPY --chown=node:node .yarn /app/.yarn",
502
516
  },
503
517
  "script": [
504
518
  "cd www",
519
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
520
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
505
521
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
506
522
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
523
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
507
524
  "yarn install --immutable",
525
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
508
526
  "yarn lint",
509
527
  ],
510
528
  "stage": "test",
@@ -564,12 +582,18 @@ COPY --chown=node:node .yarn /app/.yarn",
564
582
  },
565
583
  "script": [
566
584
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > www/__build_info.json",
585
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
567
586
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
568
587
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
588
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
569
589
  "cd www",
590
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
591
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
570
592
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
571
593
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
594
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
572
595
  "yarn install --immutable",
596
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
573
597
  "yarn build",
574
598
  ],
575
599
  "stage": "build",
@@ -832,9 +856,13 @@ COPY --chown=node:node .yarn /app/.yarn",
832
856
  },
833
857
  "script": [
834
858
  "cd www",
859
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
860
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
835
861
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
836
862
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
863
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
837
864
  "yarn install --immutable",
865
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
838
866
  "yarn test",
839
867
  ],
840
868
  "stage": "test",
@@ -989,12 +1017,18 @@ COPY --chown=node:node .yarn /app/.yarn",
989
1017
  },
990
1018
  "script": [
991
1019
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > www/__build_info.json",
1020
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
992
1021
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
993
1022
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
1023
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
994
1024
  "cd www",
1025
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
1026
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
995
1027
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
996
1028
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
1029
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
997
1030
  "yarn install --immutable",
1031
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
998
1032
  "yarn build",
999
1033
  ],
1000
1034
  "stage": "build",
@@ -1062,12 +1096,18 @@ COPY --chown=node:node .yarn /app/.yarn",
1062
1096
  },
1063
1097
  "script": [
1064
1098
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > www/__build_info.json",
1099
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
1065
1100
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
1066
1101
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
1102
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
1067
1103
  "cd www",
1104
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
1105
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
1068
1106
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
1069
1107
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
1108
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
1070
1109
  "yarn install --immutable",
1110
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
1071
1111
  "yarn build",
1072
1112
  ],
1073
1113
  "stage": "build",
@@ -34,9 +34,13 @@ exports[`matches snapshot 1`] = `
34
34
  },
35
35
  "script": [
36
36
  "cd api",
37
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
38
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
37
39
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
38
40
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
41
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
39
42
  "yarn install --immutable",
43
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
40
44
  "yarn lint",
41
45
  ],
42
46
  "stage": "test",
@@ -96,12 +100,18 @@ exports[`matches snapshot 1`] = `
96
100
  },
97
101
  "script": [
98
102
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
103
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
99
104
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
100
105
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
106
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
101
107
  "cd api",
108
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
109
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
102
110
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
103
111
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
112
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
104
113
  "yarn install --immutable",
114
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
105
115
  ],
106
116
  "stage": "build",
107
117
  "variables": {
@@ -168,12 +178,18 @@ exports[`matches snapshot 1`] = `
168
178
  },
169
179
  "script": [
170
180
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
181
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
171
182
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
172
183
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
184
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
173
185
  "cd api",
186
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
187
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
174
188
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
175
189
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
190
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
176
191
  "yarn install --immutable",
192
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
177
193
  ],
178
194
  "stage": "build",
179
195
  "variables": {
@@ -240,12 +256,18 @@ exports[`matches snapshot 1`] = `
240
256
  },
241
257
  "script": [
242
258
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
259
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
243
260
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
244
261
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
262
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
245
263
  "cd api",
264
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
265
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
246
266
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
247
267
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
268
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
248
269
  "yarn install --immutable",
270
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
249
271
  ],
250
272
  "stage": "build",
251
273
  "variables": {
@@ -318,9 +340,13 @@ exports[`matches snapshot 1`] = `
318
340
  },
319
341
  "script": [
320
342
  "cd api",
343
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
344
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
321
345
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
322
346
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
347
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
323
348
  "yarn install --immutable",
349
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
324
350
  "yarn test",
325
351
  ],
326
352
  "stage": "test",
@@ -516,9 +542,13 @@ exports[`matches snapshot 1`] = `
516
542
  },
517
543
  "script": [
518
544
  "cd api",
545
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
546
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
519
547
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
520
548
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
549
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
521
550
  "yarn install --immutable",
551
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
522
552
  "yarn lint",
523
553
  ],
524
554
  "stage": "test",
@@ -578,12 +608,18 @@ exports[`matches snapshot 1`] = `
578
608
  },
579
609
  "script": [
580
610
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
611
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
581
612
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
582
613
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
614
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
583
615
  "cd api",
616
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
617
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
584
618
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
585
619
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
620
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
586
621
  "yarn install --immutable",
622
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
587
623
  ],
588
624
  "stage": "build",
589
625
  "variables": {
@@ -656,9 +692,13 @@ exports[`matches snapshot 1`] = `
656
692
  },
657
693
  "script": [
658
694
  "cd api",
695
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
696
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
659
697
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
660
698
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
699
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
661
700
  "yarn install --immutable",
701
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
662
702
  "yarn test",
663
703
  ],
664
704
  "stage": "test",
@@ -827,12 +867,18 @@ exports[`matches snapshot 1`] = `
827
867
  },
828
868
  "script": [
829
869
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
870
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
830
871
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
831
872
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
873
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
832
874
  "cd api",
875
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
876
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
833
877
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
834
878
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
879
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
835
880
  "yarn install --immutable",
881
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
836
882
  ],
837
883
  "stage": "build",
838
884
  "variables": {
@@ -899,12 +945,18 @@ exports[`matches snapshot 1`] = `
899
945
  },
900
946
  "script": [
901
947
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
948
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
902
949
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
903
950
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
951
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
904
952
  "cd api",
953
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
954
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
905
955
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
906
956
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
957
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
907
958
  "yarn install --immutable",
959
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
908
960
  ],
909
961
  "stage": "build",
910
962
  "variables": {
@@ -29,8 +29,10 @@ exports[`matches snapshot 1`] = `
29
29
  },
30
30
  "script": [
31
31
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > ./__build_info.json",
32
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
32
33
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
33
34
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
35
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
34
36
  "cd .",
35
37
  "mvn package",
36
38
  "cp -r target dist",
@@ -164,7 +166,7 @@ exports[`matches snapshot 1`] = `
164
166
  "echo -e "\\e[0Ksection_end:$(date +%s):pushToArtifactRegistry\\r\\e[0K"",
165
167
  "echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
166
168
  "echo "$ENV_VARS" > ____envvars.yaml",
167
- "gcloud run deploy pan-test-app-dev-app --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/app:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=app,app-name=test-app,env-type=dev,env-name=dev,build-type=custom --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --cpu-boost",
169
+ "gcloud run deploy pan-test-app-dev-app --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/app:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=app,app-name=test-app,env-type=dev,env-name=dev,build-type=custom --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
168
170
  "echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
169
171
  "echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
170
172
  "gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-dev-app --limit=unlimited --sort-by=metadata.creationTimestamp --format="value(name)" --filter='(status.conditions.status=False OR status.conditions.status=Unknown)' | while read -r revisionname; do gcloud run revisions delete --project=asdf --region=asia-east1 --quiet $revisionname ; done",
@@ -392,8 +394,10 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
392
394
  },
393
395
  "script": [
394
396
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > ./__build_info.json",
397
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
395
398
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
396
399
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
400
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
397
401
  "cd .",
398
402
  "mvn package",
399
403
  "cp -r target dist",
@@ -527,7 +531,7 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
527
531
  "echo -e "\\e[0Ksection_end:$(date +%s):pushToArtifactRegistry\\r\\e[0K"",
528
532
  "echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
529
533
  "echo "$ENV_VARS" > ____envvars.yaml",
530
- "gcloud run deploy pan-test-app-review-mr1234-app --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/app/mr1234:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=app,app-name=test-app,env-type=review,env-name=review,build-type=custom --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --cpu-boost",
534
+ "gcloud run deploy pan-test-app-review-mr1234-app --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/app/mr1234:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=app,app-name=test-app,env-type=review,env-name=review,build-type=custom --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
531
535
  "echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
532
536
  "echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
533
537
  "gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-review-mr1234-app --limit=unlimited --sort-by=metadata.creationTimestamp --format="value(name)" --filter='(status.conditions.status=False OR status.conditions.status=Unknown)' | while read -r revisionname; do gcloud run revisions delete --project=asdf --region=asia-east1 --quiet $revisionname ; done",
@@ -761,8 +765,10 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
761
765
  },
762
766
  "script": [
763
767
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > ./__build_info.json",
768
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
764
769
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
765
770
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
771
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
766
772
  "cd .",
767
773
  "mvn package",
768
774
  "cp -r target dist",
@@ -811,8 +817,10 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
811
817
  },
812
818
  "script": [
813
819
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > ./__build_info.json",
820
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
814
821
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
815
822
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
823
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
816
824
  "cd .",
817
825
  "mvn package",
818
826
  "cp -r target dist",
@@ -997,7 +1005,7 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
997
1005
  "echo -e "\\e[0Ksection_end:$(date +%s):pushToArtifactRegistry\\r\\e[0K"",
998
1006
  "echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
999
1007
  "echo "$ENV_VARS" > ____envvars.yaml",
1000
- "gcloud run deploy pan-test-app-prod-app --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/app:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=app,app-name=test-app,env-type=prod,env-name=prod,build-type=custom --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --cpu-boost",
1008
+ "gcloud run deploy pan-test-app-prod-app --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/app:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=app,app-name=test-app,env-type=prod,env-name=prod,build-type=custom --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
1001
1009
  "echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
1002
1010
  "echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
1003
1011
  "gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-prod-app --limit=unlimited --sort-by=metadata.creationTimestamp --format="value(name)" --filter='(status.conditions.status=False OR status.conditions.status=Unknown)' | tail -n +6 | while read -r revisionname; do gcloud run revisions delete --project=asdf --region=asia-east1 --quiet $revisionname ; done",
@@ -1115,7 +1123,7 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
1115
1123
  "echo -e "\\e[0Ksection_end:$(date +%s):pushToArtifactRegistry\\r\\e[0K"",
1116
1124
  "echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
1117
1125
  "echo "$ENV_VARS" > ____envvars.yaml",
1118
- "gcloud run deploy pan-test-app-stage-app --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/app:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=app,app-name=test-app,env-type=stage,env-name=stage,build-type=custom --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --cpu-boost",
1126
+ "gcloud run deploy pan-test-app-stage-app --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/app:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=app,app-name=test-app,env-type=stage,env-name=stage,build-type=custom --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
1119
1127
  "echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
1120
1128
  "echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
1121
1129
  "gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-stage-app --limit=unlimited --sort-by=metadata.creationTimestamp --format="value(name)" --filter='(status.conditions.status=False OR status.conditions.status=Unknown)' | while read -r revisionname; do gcloud run revisions delete --project=asdf --region=asia-east1 --quiet $revisionname ; done",
@@ -135,9 +135,13 @@ application:
135
135
  },
136
136
  "script": [
137
137
  "cd api",
138
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
139
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
138
140
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
139
141
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
142
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
140
143
  "yarn install --immutable",
144
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
141
145
  "yarn lint",
142
146
  ],
143
147
  "stage": "test",
@@ -197,12 +201,18 @@ application:
197
201
  },
198
202
  "script": [
199
203
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
204
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
200
205
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
201
206
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
207
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
202
208
  "cd api",
209
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
210
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
203
211
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
204
212
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
213
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
205
214
  "yarn install --immutable",
215
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
206
216
  "yarn build",
207
217
  ],
208
218
  "stage": "build",
@@ -592,9 +602,13 @@ application:
592
602
  },
593
603
  "script": [
594
604
  "cd api",
605
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
606
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
595
607
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
596
608
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
609
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
597
610
  "yarn install --immutable",
611
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
598
612
  "yarn test",
599
613
  ],
600
614
  "stage": "test",
@@ -831,9 +845,13 @@ application:
831
845
  },
832
846
  "script": [
833
847
  "cd api",
848
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
849
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
834
850
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
835
851
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
852
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
836
853
  "yarn install --immutable",
854
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
837
855
  "yarn lint",
838
856
  ],
839
857
  "stage": "test",
@@ -893,12 +911,18 @@ application:
893
911
  },
894
912
  "script": [
895
913
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
914
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
896
915
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
897
916
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
917
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
898
918
  "cd api",
919
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
920
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
899
921
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
900
922
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
923
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
901
924
  "yarn install --immutable",
925
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
902
926
  "yarn build",
903
927
  ],
904
928
  "stage": "build",
@@ -1288,9 +1312,13 @@ application:
1288
1312
  },
1289
1313
  "script": [
1290
1314
  "cd api",
1315
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
1316
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
1291
1317
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
1292
1318
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
1319
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
1293
1320
  "yarn install --immutable",
1321
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
1294
1322
  "yarn test",
1295
1323
  ],
1296
1324
  "stage": "test",
@@ -1647,12 +1675,18 @@ application:
1647
1675
  },
1648
1676
  "script": [
1649
1677
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
1678
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
1650
1679
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
1651
1680
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
1681
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
1652
1682
  "cd api",
1683
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
1684
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
1653
1685
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
1654
1686
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
1687
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
1655
1688
  "yarn install --immutable",
1689
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
1656
1690
  "yarn build",
1657
1691
  ],
1658
1692
  "stage": "build",
@@ -1724,12 +1758,18 @@ application:
1724
1758
  },
1725
1759
  "script": [
1726
1760
  "echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
1761
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
1727
1762
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
1728
1763
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
1764
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
1729
1765
  "cd api",
1766
+ "echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
1767
+ "echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
1730
1768
  "if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
1731
1769
  "if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
1770
+ "echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
1732
1771
  "yarn install --immutable",
1772
+ "echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
1733
1773
  "yarn build",
1734
1774
  ],
1735
1775
  "stage": "build",