Should cache node modules between jobs

This commit is contained in:
Eliot Berriot 2017-06-25 18:05:29 +02:00
parent 5bac0c9c8d
commit b50d1c5919
1 changed files with 9 additions and 2 deletions

View File

@ -19,12 +19,19 @@ build_front:
image: node:6-alpine image: node:6-alpine
before_script: before_script:
- cd front - cd front
script: script:
- npm install - npm install
- npm run build - npm run build
artifacts: - mv dist /dist
cache:
key: "$CI_COMMIT_REF_NAME"
paths: paths:
- front/dist - front/node_modules
artifacts:
name: "front_${CI_COMMIT_REF_NAME}"
paths:
- /dist
only: only:
- master - master
- develop - develop