GitLab CI: cache build directory between jobs
This commit is contained in:
parent
1b06ead6d2
commit
4c183b3a84
1 changed files with 9 additions and 6 deletions
|
@ -4,11 +4,14 @@ variables:
|
||||||
NODE_ENV: test
|
NODE_ENV: test
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key:
|
- key:
|
||||||
files:
|
files:
|
||||||
- yarn.lock
|
- yarn.lock
|
||||||
paths:
|
paths:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
- key: $CI_COMMIT_REF_NAME
|
||||||
|
paths:
|
||||||
|
- static
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- lint
|
- lint
|
||||||
|
@ -88,8 +91,8 @@ docs-deploy:
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
before_script: []
|
||||||
script:
|
script:
|
||||||
- yarn build
|
|
||||||
- mv static public
|
- mv static public
|
||||||
- cp public/{index.html,404.html}
|
- cp public/{index.html,404.html}
|
||||||
variables:
|
variables:
|
||||||
|
|
Loading…
Reference in a new issue