diff --git a/.beagle.yml b/.beagle.yml index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..852183c7ce20a5e155c0db412aa7e7a88ba4fdba 100644 --- a/.beagle.yml +++ b/.beagle.yml @@ -0,0 +1,56 @@ +platform: 10.11.92.34 + +clone: + git: + image: registry.cn-qingdao.aliyuncs.com/wod/devops-git:1.0 + pull: true + dns: 223.5.5.5 + +pipeline: + ## 读缓存 + read-cache: + image: registry.cn-qingdao.aliyuncs.com/wod/devops-cache:1.0 + restore: true + mount: + - ./node_modules + volumes: + - /cache:/cache + build: + image: registry.cn-qingdao.aliyuncs.com/wod/devops-node:12.18.0-stretch + dns: 114.114.114.114 + volumes: + - /data/cache/yarn:/usr/local/share/.cache/yarn + commands: + - yarn config set registry https://registry.npm.taobao.org + - yarn install + - yarn run build + store-cache: + image: registry.cn-qingdao.aliyuncs.com/wod/devops-cache:1.0 + rebuild: true + mount: + - ./node_modules + volumes: + - /cache:/cache + docker-master: + image: registry.cn-qingdao.aliyuncs.com/wod/devops-docker:1.0 + volumes: + - /var/run/docker.sock:/var/run/docker.sock + base: registry.cn-qingdao.aliyuncs.com/wod-devops/ui-base:2.0 + repo: wod/zj-hl + version: v1.0.0 + channel: alpha + registry: "hub.wodcloud.com" + secrets: + - source: REGISTRY_USER + target: REGISTRY_USER + - source: REGISTRY_PASSWORD + target: REGISTRY_PASSWORD + when: + branch: master + deploy: + image: registry.cn-qingdao.aliyuncs.com/wod/devops-kubernetes:1.0 + namespace: tongliao + deployment: zj-hl + container: zj-hl + when: + branch: [master,dev]