From 5c6318d7e7935d5007848575b468b8aeab78ef1e Mon Sep 17 00:00:00 2001 From: lamya-rey <61109480+lamya-rey@users.noreply.github.com> Date: Sun, 17 Jan 2021 19:30:15 +0100 Subject: [PATCH] :construction_worker: update config.yml --- .circleci/config.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6adacc9..aae8c9f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,7 @@ jobs: paths: - node_modules key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }} - + server-build: docker: - image: circleci/node:12 @@ -43,12 +43,11 @@ jobs: steps: - attach_workspace: at: /tmp - - run: - name: install netlify - command: sudo npm install netlify-cli -g - - run: - name: Deploy app - command: netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir=/tmp/dist --site $NETLIFY_SITE_ID + - run: + 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 docker-build-and-push: docker: @@ -74,7 +73,7 @@ workflows: build-deploy: jobs: - build - - server-deploy: + - server-build: requires: - build - server-deploy: