Browse Source

💚artifact-save 2

main
Pierre 6 years ago
parent
commit
6e66ad4112
  1. 19
      .circleci/config.yml

19
.circleci/config.yml

@ -20,7 +20,7 @@ jobs:
paths: paths:
- node_modules - node_modules
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }} key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
artifact-save: artifact-save:
docker: docker:
- image: circleci/node:dubnium-browsers - image: circleci/node:dubnium-browsers
@ -32,17 +32,20 @@ jobs:
- dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }} - dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
# fallback to using the latest cache if no exact match is found # fallback to using the latest cache if no exact match is found
- dependencies- - dependencies-
- run: cp ./dist /tmp/server -r
- run:
name: Copy deployment artifacts to workspace
command: |
cp ./dist /tmp/server -r
- store_artifacts: - store_artifacts:
path: /tmp/server
path: /tmp/server
- persist_to_workspace: - persist_to_workspace:
root: /tmp
paths:
root: /tmp
paths:
- server - server
- save_cache: - save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
netlifly-deploy: netlifly-deploy:
docker: docker:

Loading…
Cancel
Save