Commit 5614ca67 authored by 张俊's avatar 张俊

yml

parent 56099ff4
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]
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