diff --git a/.beagle.yml b/.beagle.yml index 1be526ac3762aa5602e2390bdbf024138123009b..8cb4b493b9b3281c65a3c7eb58b630676a2f0ce3 100644 --- a/.beagle.yml +++ b/.beagle.yml @@ -15,6 +15,9 @@ pipeline: - ./node_modules volumes: - /data/cache:/cache + when: + branch: + - dev ## 构建 build: image: registry.cn-qingdao.aliyuncs.com/wod/devops-node:12.18.0-stretch @@ -24,6 +27,9 @@ pipeline: commands: - yarn - yarn build + when: + branch: + - dev store-cache: image: registry.cn-qingdao.aliyuncs.com/wod/devops-cache:1.0 @@ -32,6 +38,9 @@ pipeline: - ./node_modules volumes: - /data/cache:/cache + when: + branch: + - dev ## 编译成静态文件 docker: