Should cache node modules between jobs

merge-requests/154/head
Eliot Berriot 2017-06-25 18:05:29 +02:00
rodzic 5bac0c9c8d
commit b50d1c5919
1 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

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