Commit 898136bc authored by 孙江梦's avatar 孙江梦

cicd

parent bc259a24
......@@ -8,16 +8,16 @@ clone:
pipeline:
## 读缓存
read-cache:
image: registry.cn-qingdao.aliyuncs.com/wod/devops-cache:1.0
restore: true
mount:
- ./node_modules
volumes:
- /data/cache:/cache
when:
branch:
- dev
# read-cache:
# image: registry.cn-qingdao.aliyuncs.com/wod/devops-cache:1.0
# restore: true
# mount:
# - ./node_modules
# volumes:
# - /data/cache:/cache
# when:
# branch:
# - dev
## 构建
build:
image: registry.cn-qingdao.aliyuncs.com/wod/devops-node:12.18.0-stretch
......@@ -31,17 +31,17 @@ pipeline:
branch:
- dev
store-cache:
image: registry.cn-qingdao.aliyuncs.com/wod/devops-cache:1.0
rebuild: true
check: yarn.lock
mount:
- ./node_modules
volumes:
- /data/cache:/cache
when:
branch:
- dev
# store-cache:
# image: registry.cn-qingdao.aliyuncs.com/wod/devops-cache:1.0
# rebuild: true
# check: yarn.lock
# mount:
# - ./node_modules
# volumes:
# - /data/cache:/cache
# when:
# branch:
# - dev
## 编译成静态文件
docker:
......
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