From 5614ca678176820121fba426981411b09884b768 Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Fri, 25 Jun 2021 15:10:33 +0800 Subject: [PATCH] yml --- .beagle.yml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/.beagle.yml b/.beagle.yml index e69de29..852183c 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] -- 2.26.0