Browse Source

👷artifact-save

main
Pierre 6 years ago
parent
commit
84b5a366cd
  1. 30
      .circleci/config.yml

30
.circleci/config.yml

@ -20,6 +20,32 @@ jobs:
paths:
- node_modules
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
artifact-save:
docker:
- 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-
- run:
name: Copy deployment artifacts to workspace
command: |
cp ./dist /tmp/server -r
- store_artifacts:
path: /tmp/server
- persist_to_workspace:
root: /tmp
paths:
- server
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
netlifly-deploy:
docker:
- image: circleci/node:dubnium-browsers
@ -34,7 +60,11 @@ workflows:
build-deploy:
jobs:
- build
- artifact-save:
requires:
-build
- netlifly-deploy:
requires:
- build
- artifact-save
Loading…
Cancel
Save