@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.
- package/dist/build/node/yarn.js +3 -2
- package/dist/bundles/catladder-gitlab/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/deploy/cloudRun/deployJob.js +2 -1
- package/dist/deploy/types/googleCloudRun.d.ts +12 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/cloud-run-memory-limit.ts.snap +44 -4
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.ts.snap +44 -4
- package/examples/__snapshots__/cloud-run-non-public.ts.snap +44 -4
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.ts.snap +88 -8
- package/examples/__snapshots__/cloud-run-with-sql.ts.snap +88 -8
- package/examples/__snapshots__/custom-build-job-with-tests.ts.snap +12 -4
- package/examples/__snapshots__/custom-build-job.ts.snap +12 -4
- package/examples/__snapshots__/custom-deploy.ts.snap +40 -0
- package/examples/__snapshots__/custom-envs.ts.snap +52 -0
- package/examples/__snapshots__/custom-sbom-java.ts.snap +12 -4
- package/examples/__snapshots__/kubernetes-application-customization.ts.snap +40 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.ts.snap +40 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql.ts.snap +40 -0
- package/examples/__snapshots__/kubernetes-with-jobs.ts.snap +80 -0
- package/examples/__snapshots__/kubernetes-with-mongodb.ts.snap +40 -0
- package/examples/__snapshots__/meteor-kubernetes.ts.snap +40 -0
- package/examples/__snapshots__/native-app.ts.snap +84 -4
- package/examples/__snapshots__/node-build-with-custom-image.ts.snap +44 -4
- package/examples/__snapshots__/wait-for-other-deploy.ts.snap +80 -0
- package/package.json +1 -1
- package/src/build/node/yarn.ts +14 -6
- package/src/deploy/cloudRun/deployJob.ts +1 -0
- package/src/deploy/types/googleCloudRun.ts +13 -1
|
@@ -148,9 +148,13 @@ mongodb:
|
|
|
148
148
|
},
|
|
149
149
|
"script": [
|
|
150
150
|
"cd api",
|
|
151
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
152
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
151
153
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
152
154
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
155
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
153
156
|
"yarn install --immutable",
|
|
157
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
154
158
|
"yarn lint",
|
|
155
159
|
],
|
|
156
160
|
"stage": "test",
|
|
@@ -210,12 +214,18 @@ mongodb:
|
|
|
210
214
|
},
|
|
211
215
|
"script": [
|
|
212
216
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
217
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
213
218
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
214
219
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
220
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
215
221
|
"cd api",
|
|
222
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
223
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
216
224
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
217
225
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
226
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
218
227
|
"yarn install --immutable",
|
|
228
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
219
229
|
"yarn build",
|
|
220
230
|
],
|
|
221
231
|
"stage": "build",
|
|
@@ -633,9 +643,13 @@ mongodb:
|
|
|
633
643
|
},
|
|
634
644
|
"script": [
|
|
635
645
|
"cd api",
|
|
646
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
647
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
636
648
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
637
649
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
650
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
638
651
|
"yarn install --immutable",
|
|
652
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
639
653
|
"yarn test",
|
|
640
654
|
],
|
|
641
655
|
"stage": "test",
|
|
@@ -885,9 +899,13 @@ mongodb:
|
|
|
885
899
|
},
|
|
886
900
|
"script": [
|
|
887
901
|
"cd api",
|
|
902
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
903
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
888
904
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
889
905
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
906
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
890
907
|
"yarn install --immutable",
|
|
908
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
891
909
|
"yarn lint",
|
|
892
910
|
],
|
|
893
911
|
"stage": "test",
|
|
@@ -947,12 +965,18 @@ mongodb:
|
|
|
947
965
|
},
|
|
948
966
|
"script": [
|
|
949
967
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
968
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
950
969
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
951
970
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
971
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
952
972
|
"cd api",
|
|
973
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
974
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
953
975
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
954
976
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
977
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
955
978
|
"yarn install --immutable",
|
|
979
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
956
980
|
"yarn build",
|
|
957
981
|
],
|
|
958
982
|
"stage": "build",
|
|
@@ -1370,9 +1394,13 @@ mongodb:
|
|
|
1370
1394
|
},
|
|
1371
1395
|
"script": [
|
|
1372
1396
|
"cd api",
|
|
1397
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1398
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1373
1399
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1374
1400
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1401
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1375
1402
|
"yarn install --immutable",
|
|
1403
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1376
1404
|
"yarn test",
|
|
1377
1405
|
],
|
|
1378
1406
|
"stage": "test",
|
|
@@ -1755,12 +1783,18 @@ mongodb:
|
|
|
1755
1783
|
},
|
|
1756
1784
|
"script": [
|
|
1757
1785
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
1786
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1758
1787
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1759
1788
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1789
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1760
1790
|
"cd api",
|
|
1791
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1792
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1761
1793
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1762
1794
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1795
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1763
1796
|
"yarn install --immutable",
|
|
1797
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1764
1798
|
"yarn build",
|
|
1765
1799
|
],
|
|
1766
1800
|
"stage": "build",
|
|
@@ -1834,12 +1868,18 @@ mongodb:
|
|
|
1834
1868
|
},
|
|
1835
1869
|
"script": [
|
|
1836
1870
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
1871
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1837
1872
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1838
1873
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1874
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1839
1875
|
"cd api",
|
|
1876
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1877
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1840
1878
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1841
1879
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1880
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1842
1881
|
"yarn install --immutable",
|
|
1882
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1843
1883
|
"yarn build",
|
|
1844
1884
|
],
|
|
1845
1885
|
"stage": "build",
|
|
@@ -142,9 +142,13 @@ mongodb:
|
|
|
142
142
|
},
|
|
143
143
|
"script": [
|
|
144
144
|
"cd app",
|
|
145
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
146
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
145
147
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
146
148
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
149
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
147
150
|
"yarn install --immutable",
|
|
151
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
148
152
|
"yarn lint",
|
|
149
153
|
],
|
|
150
154
|
"stage": "test",
|
|
@@ -204,12 +208,18 @@ mongodb:
|
|
|
204
208
|
},
|
|
205
209
|
"script": [
|
|
206
210
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > app/__build_info.json",
|
|
211
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
207
212
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
208
213
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
214
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
209
215
|
"cd app",
|
|
216
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
217
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
210
218
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
211
219
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
220
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
212
221
|
"yarn install --immutable",
|
|
222
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
213
223
|
"echo "add healthcheck package"",
|
|
214
224
|
"meteor add panter:healthroute --allow-superuser",
|
|
215
225
|
"meteor add qualia:prod-shell --allow-superuser",
|
|
@@ -604,9 +614,13 @@ mongodb:
|
|
|
604
614
|
},
|
|
605
615
|
"script": [
|
|
606
616
|
"cd app",
|
|
617
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
618
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
607
619
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
608
620
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
621
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
609
622
|
"yarn install --immutable",
|
|
623
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
610
624
|
"yarn test",
|
|
611
625
|
],
|
|
612
626
|
"stage": "test",
|
|
@@ -850,9 +864,13 @@ mongodb:
|
|
|
850
864
|
},
|
|
851
865
|
"script": [
|
|
852
866
|
"cd app",
|
|
867
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
868
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
853
869
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
854
870
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
871
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
855
872
|
"yarn install --immutable",
|
|
873
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
856
874
|
"yarn lint",
|
|
857
875
|
],
|
|
858
876
|
"stage": "test",
|
|
@@ -912,12 +930,18 @@ mongodb:
|
|
|
912
930
|
},
|
|
913
931
|
"script": [
|
|
914
932
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > app/__build_info.json",
|
|
933
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
915
934
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
916
935
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
936
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
917
937
|
"cd app",
|
|
938
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
939
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
918
940
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
919
941
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
942
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
920
943
|
"yarn install --immutable",
|
|
944
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
921
945
|
"echo "add healthcheck package"",
|
|
922
946
|
"meteor add panter:healthroute --allow-superuser",
|
|
923
947
|
"meteor add qualia:prod-shell --allow-superuser",
|
|
@@ -1312,9 +1336,13 @@ mongodb:
|
|
|
1312
1336
|
},
|
|
1313
1337
|
"script": [
|
|
1314
1338
|
"cd app",
|
|
1339
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1340
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1315
1341
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1316
1342
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1343
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1317
1344
|
"yarn install --immutable",
|
|
1345
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1318
1346
|
"yarn test",
|
|
1319
1347
|
],
|
|
1320
1348
|
"stage": "test",
|
|
@@ -1697,12 +1725,18 @@ mongodb:
|
|
|
1697
1725
|
},
|
|
1698
1726
|
"script": [
|
|
1699
1727
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > app/__build_info.json",
|
|
1728
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1700
1729
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1701
1730
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1731
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1702
1732
|
"cd app",
|
|
1733
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1734
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1703
1735
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1704
1736
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1737
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1705
1738
|
"yarn install --immutable",
|
|
1739
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1706
1740
|
"echo "add healthcheck package"",
|
|
1707
1741
|
"meteor add panter:healthroute --allow-superuser",
|
|
1708
1742
|
"meteor add qualia:prod-shell --allow-superuser",
|
|
@@ -1781,12 +1815,18 @@ mongodb:
|
|
|
1781
1815
|
},
|
|
1782
1816
|
"script": [
|
|
1783
1817
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > app/__build_info.json",
|
|
1818
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1784
1819
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1785
1820
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1821
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1786
1822
|
"cd app",
|
|
1823
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1824
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1787
1825
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1788
1826
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1827
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1789
1828
|
"yarn install --immutable",
|
|
1829
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1790
1830
|
"echo "add healthcheck package"",
|
|
1791
1831
|
"meteor add panter:healthroute --allow-superuser",
|
|
1792
1832
|
"meteor add qualia:prod-shell --allow-superuser",
|
|
@@ -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
|
"yarn build",
|
|
106
116
|
],
|
|
107
117
|
"stage": "build",
|
|
@@ -262,7 +272,7 @@ COPY --chown=node:node .yarn /app/.yarn",
|
|
|
262
272
|
"echo -e "\\e[0Ksection_end:$(date +%s):pushToArtifactRegistry\\r\\e[0K"",
|
|
263
273
|
"echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
|
|
264
274
|
"echo "$ENV_VARS" > ____envvars.yaml",
|
|
265
|
-
"gcloud run deploy pan-test-app-dev-api --command="yarn,start" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=dev,env-name=dev,build-type=node --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --cpu-boost",
|
|
275
|
+
"gcloud run deploy pan-test-app-dev-api --command="yarn,start" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=dev,env-name=dev,build-type=node --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
|
|
266
276
|
"echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
|
|
267
277
|
"echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
|
|
268
278
|
"gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-dev-api --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",
|
|
@@ -424,9 +434,13 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
|
|
|
424
434
|
},
|
|
425
435
|
"script": [
|
|
426
436
|
"cd api",
|
|
437
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
438
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
427
439
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
428
440
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
441
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
429
442
|
"yarn install --immutable",
|
|
443
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
430
444
|
"yarn test",
|
|
431
445
|
],
|
|
432
446
|
"stage": "test",
|
|
@@ -490,9 +504,13 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
|
|
|
490
504
|
},
|
|
491
505
|
"script": [
|
|
492
506
|
"cd app",
|
|
507
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
508
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
493
509
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
494
510
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
511
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
495
512
|
"yarn install --immutable",
|
|
513
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
496
514
|
"yarn lint",
|
|
497
515
|
],
|
|
498
516
|
"stage": "test",
|
|
@@ -579,12 +597,18 @@ GRAPHQL_URL=https://pan-test-app-dev-api-unknown-host.example.com/graphql
|
|
|
579
597
|
_ALL_ENV_VAR_KEYS=["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INFO_BUILD_TIME","BUILD_INFO_CURRENT_VERSION","HOST","ROOT_URL","APP_STORE_CONNECT_API_KEY_CONTENT","APP_STORE_CONNECT_ISSUER_ID","APP_STORE_CONNECT_API_KEY_ID","GRAPHQL_URL"]
|
|
580
598
|
EOF",
|
|
581
599
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > app/__build_info.json",
|
|
600
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
582
601
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
583
602
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
603
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
584
604
|
"cd app",
|
|
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"",
|
|
585
607
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
586
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"",
|
|
587
610
|
"yarn install --immutable",
|
|
611
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
588
612
|
"bundle config set --local path 'vendor/ruby'",
|
|
589
613
|
"gem install bundler",
|
|
590
614
|
"bundle install",
|
|
@@ -762,9 +786,13 @@ EOF",
|
|
|
762
786
|
},
|
|
763
787
|
"script": [
|
|
764
788
|
"cd app",
|
|
789
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
790
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
765
791
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
766
792
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
793
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
767
794
|
"yarn install --immutable",
|
|
795
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
768
796
|
"yarn test",
|
|
769
797
|
],
|
|
770
798
|
"stage": "test",
|
|
@@ -902,9 +930,13 @@ EOF",
|
|
|
902
930
|
},
|
|
903
931
|
"script": [
|
|
904
932
|
"cd api",
|
|
933
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
934
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
905
935
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
906
936
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
937
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
907
938
|
"yarn install --immutable",
|
|
939
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
908
940
|
"yarn lint",
|
|
909
941
|
],
|
|
910
942
|
"stage": "test",
|
|
@@ -964,12 +996,18 @@ EOF",
|
|
|
964
996
|
},
|
|
965
997
|
"script": [
|
|
966
998
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
999
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
967
1000
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
968
1001
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1002
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
969
1003
|
"cd api",
|
|
1004
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1005
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
970
1006
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
971
1007
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1008
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
972
1009
|
"yarn install --immutable",
|
|
1010
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
973
1011
|
"yarn build",
|
|
974
1012
|
],
|
|
975
1013
|
"stage": "build",
|
|
@@ -1130,7 +1168,7 @@ COPY --chown=node:node .yarn /app/.yarn",
|
|
|
1130
1168
|
"echo -e "\\e[0Ksection_end:$(date +%s):pushToArtifactRegistry\\r\\e[0K"",
|
|
1131
1169
|
"echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
|
|
1132
1170
|
"echo "$ENV_VARS" > ____envvars.yaml",
|
|
1133
|
-
"gcloud run deploy pan-test-app-review-mr1234-api --command="yarn,start" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/api/mr1234:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=review,env-name=review,build-type=node --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --cpu-boost",
|
|
1171
|
+
"gcloud run deploy pan-test-app-review-mr1234-api --command="yarn,start" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/api/mr1234:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=review,env-name=review,build-type=node --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
|
|
1134
1172
|
"echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
|
|
1135
1173
|
"echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
|
|
1136
1174
|
"gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-review-mr1234-api --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",
|
|
@@ -1298,9 +1336,13 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
|
|
|
1298
1336
|
},
|
|
1299
1337
|
"script": [
|
|
1300
1338
|
"cd api",
|
|
1339
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1340
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1301
1341
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1302
1342
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1343
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1303
1344
|
"yarn install --immutable",
|
|
1345
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1304
1346
|
"yarn test",
|
|
1305
1347
|
],
|
|
1306
1348
|
"stage": "test",
|
|
@@ -1364,9 +1406,13 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
|
|
|
1364
1406
|
},
|
|
1365
1407
|
"script": [
|
|
1366
1408
|
"cd app",
|
|
1409
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1410
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1367
1411
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1368
1412
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1413
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1369
1414
|
"yarn install --immutable",
|
|
1415
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1370
1416
|
"yarn lint",
|
|
1371
1417
|
],
|
|
1372
1418
|
"stage": "test",
|
|
@@ -1453,12 +1499,18 @@ GRAPHQL_URL=https://pan-test-app-review-mr1234-api-unknown-host.example.com/grap
|
|
|
1453
1499
|
_ALL_ENV_VAR_KEYS=["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INFO_BUILD_TIME","BUILD_INFO_CURRENT_VERSION","HOST","ROOT_URL","APP_STORE_CONNECT_API_KEY_CONTENT","APP_STORE_CONNECT_ISSUER_ID","APP_STORE_CONNECT_API_KEY_ID","GRAPHQL_URL"]
|
|
1454
1500
|
EOF",
|
|
1455
1501
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > app/__build_info.json",
|
|
1502
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1456
1503
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1457
1504
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1505
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1458
1506
|
"cd app",
|
|
1507
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1508
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1459
1509
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1460
1510
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1511
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1461
1512
|
"yarn install --immutable",
|
|
1513
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1462
1514
|
"bundle config set --local path 'vendor/ruby'",
|
|
1463
1515
|
"gem install bundler",
|
|
1464
1516
|
"bundle install",
|
|
@@ -1636,9 +1688,13 @@ EOF",
|
|
|
1636
1688
|
},
|
|
1637
1689
|
"script": [
|
|
1638
1690
|
"cd app",
|
|
1691
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1692
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1639
1693
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1640
1694
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1695
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1641
1696
|
"yarn install --immutable",
|
|
1697
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1642
1698
|
"yarn test",
|
|
1643
1699
|
],
|
|
1644
1700
|
"stage": "test",
|
|
@@ -1795,12 +1851,18 @@ EOF",
|
|
|
1795
1851
|
},
|
|
1796
1852
|
"script": [
|
|
1797
1853
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
1854
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1798
1855
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1799
1856
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1857
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1800
1858
|
"cd api",
|
|
1859
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1860
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1801
1861
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1802
1862
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1863
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1803
1864
|
"yarn install --immutable",
|
|
1865
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1804
1866
|
"yarn build",
|
|
1805
1867
|
],
|
|
1806
1868
|
"stage": "build",
|
|
@@ -1871,12 +1933,18 @@ EOF",
|
|
|
1871
1933
|
},
|
|
1872
1934
|
"script": [
|
|
1873
1935
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
1936
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1874
1937
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1875
1938
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1939
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1876
1940
|
"cd api",
|
|
1941
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1942
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1877
1943
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1878
1944
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1945
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1879
1946
|
"yarn install --immutable",
|
|
1947
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1880
1948
|
"yarn build",
|
|
1881
1949
|
],
|
|
1882
1950
|
"stage": "build",
|
|
@@ -2093,7 +2161,7 @@ COPY --chown=node:node .yarn /app/.yarn",
|
|
|
2093
2161
|
"echo -e "\\e[0Ksection_end:$(date +%s):pushToArtifactRegistry\\r\\e[0K"",
|
|
2094
2162
|
"echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
|
|
2095
2163
|
"echo "$ENV_VARS" > ____envvars.yaml",
|
|
2096
|
-
"gcloud run deploy pan-test-app-prod-api --command="yarn,start" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=prod,env-name=prod,build-type=node --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --cpu-boost",
|
|
2164
|
+
"gcloud run deploy pan-test-app-prod-api --command="yarn,start" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=prod,env-name=prod,build-type=node --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
|
|
2097
2165
|
"echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
|
|
2098
2166
|
"echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
|
|
2099
2167
|
"gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-prod-api --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",
|
|
@@ -2211,7 +2279,7 @@ _ALL_ENV_VAR_KEYS: '["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INF
|
|
|
2211
2279
|
"echo -e "\\e[0Ksection_end:$(date +%s):pushToArtifactRegistry\\r\\e[0K"",
|
|
2212
2280
|
"echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
|
|
2213
2281
|
"echo "$ENV_VARS" > ____envvars.yaml",
|
|
2214
|
-
"gcloud run deploy pan-test-app-stage-api --command="yarn,start" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=stage,env-name=stage,build-type=node --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --cpu-boost",
|
|
2282
|
+
"gcloud run deploy pan-test-app-stage-api --command="yarn,start" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=stage,env-name=stage,build-type=node --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
|
|
2215
2283
|
"echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
|
|
2216
2284
|
"echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
|
|
2217
2285
|
"gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-stage-api --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",
|
|
@@ -2486,12 +2554,18 @@ GRAPHQL_URL=https://pan-test-app-prod-api-unknown-host.example.com/graphql
|
|
|
2486
2554
|
_ALL_ENV_VAR_KEYS=["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INFO_BUILD_TIME","BUILD_INFO_CURRENT_VERSION","HOST","ROOT_URL","APP_STORE_CONNECT_API_KEY_CONTENT","APP_STORE_CONNECT_ISSUER_ID","APP_STORE_CONNECT_API_KEY_ID","GRAPHQL_URL"]
|
|
2487
2555
|
EOF",
|
|
2488
2556
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > app/__build_info.json",
|
|
2557
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
2489
2558
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
2490
2559
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
2560
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
2491
2561
|
"cd app",
|
|
2562
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
2563
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
2492
2564
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
2493
2565
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
2566
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
2494
2567
|
"yarn install --immutable",
|
|
2568
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
2495
2569
|
"bundle config set --local path 'vendor/ruby'",
|
|
2496
2570
|
"gem install bundler",
|
|
2497
2571
|
"bundle install",
|
|
@@ -2597,12 +2671,18 @@ GRAPHQL_URL=https://pan-test-app-stage-api-unknown-host.example.com/graphql
|
|
|
2597
2671
|
_ALL_ENV_VAR_KEYS=["ENV_SHORT","APP_DIR","ENV_TYPE","BUILD_INFO_ID","BUILD_INFO_BUILD_TIME","BUILD_INFO_CURRENT_VERSION","HOST","ROOT_URL","APP_STORE_CONNECT_API_KEY_CONTENT","APP_STORE_CONNECT_ISSUER_ID","APP_STORE_CONNECT_API_KEY_ID","GRAPHQL_URL"]
|
|
2598
2672
|
EOF",
|
|
2599
2673
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > app/__build_info.json",
|
|
2674
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
2600
2675
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
2601
2676
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
2677
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
2602
2678
|
"cd app",
|
|
2679
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
2680
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
2603
2681
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
2604
2682
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
2683
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
2605
2684
|
"yarn install --immutable",
|
|
2685
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
2606
2686
|
"bundle config set --local path 'vendor/ruby'",
|
|
2607
2687
|
"gem install bundler",
|
|
2608
2688
|
"bundle install",
|