4242 paths :
4343 - ~/codesandbox-client
4444
45- build-app :
45+ build-prod :
4646 docker :
4747 - image : circleci/node:9.11.1
4848 working_directory : ~/codesandbox-client
@@ -54,48 +54,18 @@ jobs:
5454 key : v8-prod-app-build-cache-master
5555 - run :
5656 name : Build Application
57- command : yarn build:app
57+ command : yarn build:prod
5858 - save_cache :
5959 key : v8-prod-app-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
6060 paths :
6161 - ./packages/app/www
62-
63- build-homepage :
64- docker :
65- - image : circleci/node:9.11.1
66- working_directory : ~/codesandbox-client
67- steps :
68- - restore_cache :
69- key : v8-repo-{{ .Environment.CIRCLE_SHA1 }}
70- - run :
71- name : Build Application
72- command : yarn build:homepage
73- - save_cache :
74- key : v8-prod-homepage-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
75- paths :
76- - ./packages/homepage/public
77-
78- build-combine :
79- docker :
80- - image : circleci/node:9.11.1
81- working_directory : ~/codesandbox-client
82- steps :
83- - restore_cache :
84- key : v8-repo-{{ .Environment.CIRCLE_SHA1 }}
85-
86- # Restore app build
87- - restore_cache :
88- key : v8-prod-app-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
89- # Restore homepage build
90- - restore_cache :
91- key : v8-prod-homepage-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
92- - run :
93- name : Build Application
94- command : yarn build:combine
9562 - save_cache :
9663 key : v8-prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
9764 paths :
9865 - ./www
66+ - store_artifacts :
67+ path : ./www
68+ destination : www
9969
10070 test-integrations :
10171 docker :
@@ -180,19 +150,12 @@ workflows:
180150 - lint :
181151 requires :
182152 - build-dependencies
183- - build-app :
153+ - build-prod :
184154 requires :
185155 - build-dependencies
186- - build-homepage :
187- requires :
188- - build-dependencies
189- - build-combine :
190- requires :
191- - build-app
192- - build-homepage
193156 - create-docker-image :
194157 requires :
158+ - build-prod
195159 - lint
196160 - test-integrations
197161 - test-jest
198- - build-combine
0 commit comments