|
|
|
@ -25,17 +25,18 @@ jobs: |
|
|
|
- yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} |
|
|
|
- run: |
|
|
|
name: Build for production |
|
|
|
command : yarn run build |
|
|
|
command : | |
|
|
|
yarn run build |
|
|
|
- run: |
|
|
|
name: Copy build to workspace |
|
|
|
command: | |
|
|
|
cp dist/ /tmp/dist -r |
|
|
|
cp server-build/ /tmp/server-build -r |
|
|
|
- store_artifacts: |
|
|
|
path: /tmp/dist |
|
|
|
path: /tmp/server-build |
|
|
|
- persist_to_workspace: |
|
|
|
root: /tmp |
|
|
|
paths: |
|
|
|
- dist |
|
|
|
- server-build |
|
|
|
server-deploy: |
|
|
|
docker: |
|
|
|
- image: circleci/node:dubnium-browsers |
|
|
|
@ -47,7 +48,7 @@ jobs: |
|
|
|
name: install netlify and Deploy app |
|
|
|
command: | |
|
|
|
sudo npm install netlify-cli -g |
|
|
|
netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir=/tmp/dist --site $NETLIFY_SITE_ID |
|
|
|
netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir=/tmp/server-build --site $NETLIFY_SITE_ID |
|
|
|
|
|
|
|
docker-build-and-push: |
|
|
|
docker: |
|
|
|
|