Commit e9f5f54a authored by 刘殿昕's avatar 刘殿昕

修改yml增加yarn缓存

parent e2422930
......@@ -6,25 +6,28 @@ clone:
dns: 223.5.5.5
pipeline:
read-cache:
image: registry.cn-qingdao.aliyuncs.com/wod-devops/cache:latest
image: registry.cn-qingdao.aliyuncs.com/wod/devops-cache:1.0.0-alpha
restore: true
check: yarn.lock
mount:
- ./node_modules
- ./yarn.lock
volumes:
- /data/cache:/cache
build:
image: registry.cn-qingdao.aliyuncs.com/wod-devops/node:8.15.0-onbuild
dns: 223.5.5.5
volumes:
- /data/cache/yarn:/usr/local/share/.cache/yarn/v1
- /data/cache/yarn:/usr/local/share/.cache/yarn
commands:
- yarn install
- yarn run build
store-cache:
image: registry.cn-qingdao.aliyuncs.com/wod-devops/cache:latest
image: registry.cn-qingdao.aliyuncs.com/wod/devops-cache:1.0.0-alpha
rebuild: true
mount:
- ./node_modules
- ./yarn.lock
volumes:
- /data/cache:/cache
docker-dev:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment