Commit 6f1efb29 authored by 孙江梦's avatar 孙江梦

cicd

parent 898136bc
......@@ -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:
......@@ -106,7 +106,7 @@ pipeline:
namespace: apaas-v3
deployment: apaas-login
container: apaas-login
registry: registry.cn-qingdao.aliyuncs.com/wod/apaas-login:v3.0.4
registry: registry.cn-qingdao.aliyuncs.com/wod/apaas-login:v3.0.4-alpha
when:
branch:
- 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