Browse Source

💚 netlifly deploy cache

main
Pierre 6 years ago
parent
commit
e854cc8f6c
  1. 13
      .circleci/config.yml

13
.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:

Loading…
Cancel
Save