From e854cc8f6c17bf15095f5862e1a7a1ff41cec951 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 17 Jan 2021 11:37:34 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20netlifly=20deploy=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6daa894..0500248 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -53,12 +53,21 @@ jobs: - image: circleci/node:dubnium-browsers working_directory: ~/repo steps: + - checkout + - restore_cache: + keys: + - dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }} + # fallback to using the latest cache if no exact match is found + - dependencies- - attach_workspace: at: /tmp - run: name: Deploy app - command: sudo npm install netlify-cli -g && netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFLY_DEVOPSFINAL_TOKEN --prod -dir=/tmp/server - + command: sudo npm netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFLY_DEVOPSFINAL_TOKEN --prod -dir=/tmp/server + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} workflows: version: 2 build-deploy: