diff --git a/.circleci/config.yml b/.circleci/config.yml index 27fe541f..c60ceca8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -49,7 +49,7 @@ jobs: - run: name: Deploy to S3 command: aws s3 sync /tmp/build/ s3://carpal-ui-rides-dev/ --delete - services-deploy: + services-build: docker: - image: circleci/node:7.10 working_directory: ~/carpal/backend/src @@ -67,6 +67,18 @@ jobs: paths: - node_modules key: v1-dependencies-{{ checksum "package.json" }} + services-deploy: + docker: + - image: circleci/node:7.10 + working_directory: ~/carpal/backend/src + steps: + - checkout: + path: ~/carpal + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- - run: ./writeSecrets.sh - run: npm run deploy-sls workflows: @@ -80,6 +92,7 @@ workflows: filters: branches: only: master + - services-build - services-deploy: filters: branches: