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

修改yml增加yarn缓存

parent e2422930
...@@ -6,25 +6,28 @@ clone: ...@@ -6,25 +6,28 @@ clone:
dns: 223.5.5.5 dns: 223.5.5.5
pipeline: pipeline:
read-cache: 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 restore: true
check: yarn.lock
mount: mount:
- ./node_modules - ./node_modules
- ./yarn.lock
volumes: volumes:
- /data/cache:/cache - /data/cache:/cache
build: build:
image: registry.cn-qingdao.aliyuncs.com/wod-devops/node:8.15.0-onbuild image: registry.cn-qingdao.aliyuncs.com/wod-devops/node:8.15.0-onbuild
dns: 223.5.5.5 dns: 223.5.5.5
volumes: volumes:
- /data/cache/yarn:/usr/local/share/.cache/yarn/v1 - /data/cache/yarn:/usr/local/share/.cache/yarn
commands: commands:
- yarn install - yarn install
- yarn run build - yarn run build
store-cache: 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 rebuild: true
mount: mount:
- ./node_modules - ./node_modules
- ./yarn.lock
volumes: volumes:
- /data/cache:/cache - /data/cache:/cache
docker-dev: 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