From 0f45488f2143dbcc5789943cb0422e24164efcaf Mon Sep 17 00:00:00 2001 From: hallouma875 Date: Fri, 15 Jan 2021 13:53:49 +0100 Subject: [PATCH] add netlify config --- .circleci/config.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7e74a8a..1863b36 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,19 +41,19 @@ jobs: # CircleCI maintains a library of pre-built images # documented at https://circleci.com/docs/2.0/circleci-images/ # - image: circleci/mongo:3.4.4 - + working_directory: ~/repo - + steps: - checkout - + # Download and cache dependencies - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }} # fallback to using the latest cache if no exact match is found - v1-dependencies- - + - run: yarn build - run: name: Copy deployment artifacts to workspace @@ -65,7 +65,7 @@ jobs: root: /tmp paths: - server - + - save_cache: paths: - node_modules @@ -74,7 +74,7 @@ jobs: deploy: docker: - image: circleci/node:dubnium-browsers - working_directory: ~/repo + working_directory: ~/repo steps: - checkout - attach_workspace: @@ -85,8 +85,8 @@ jobs: # fallback to using the latest cache if no exact match is found - v1-dependencies- - run: - name: Deploy app - command: npx netlify-cli deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --dir /tmp/server --prod + name: Deploy app + command: npx netlify-cli deploy --auth 89YPDHDE8I7iR85BiDqtthOwpbsaJzzeQwKJdgUtBFY --site 4d88c2a3-5589-4014-982e-11d955198d7a --dir /tmp/server --prod docker-build-and-push: working_directory: /dockerapp docker: @@ -115,8 +115,8 @@ workflows: requires: - install - deploy: - requires: + requires:NETLIFY_AUTH_TOKEN - build - docker-build-and-push: requires: - - build \ No newline at end of file + - build