|
@@ -39,20 +39,19 @@ steps:
|
|
JNLP_INGRESS_PUB: yes
|
|
JNLP_INGRESS_PUB: yes
|
|
commands:
|
|
commands:
|
|
# 切换目标集群
|
|
# 切换目标集群
|
|
- #- kubecm s $DEPLOY_ENV
|
|
|
|
- - echo "test ci"
|
|
|
|
|
|
+ - kubecm s $DEPLOY_ENV
|
|
# 生成配置YAML文件
|
|
# 生成配置YAML文件
|
|
# - python3 /root/tools.py -b
|
|
# - python3 /root/tools.py -b
|
|
# 部署服务到kubernetes上
|
|
# 部署服务到kubernetes上
|
|
# - python3 /root/tools.py -a
|
|
# - python3 /root/tools.py -a
|
|
# apply for prod
|
|
# apply for prod
|
|
- #kubectl apply -f deploy.yaml --record
|
|
|
|
|
|
+ #- kubectl apply -f deploy.yaml --record
|
|
# apply for canary
|
|
# apply for canary
|
|
- #- kubectl apply -f deploy-canary.yaml --record
|
|
|
|
|
|
+ - kubectl apply -f deploy-canary.yaml --record
|
|
# 检查服务部署状态
|
|
# 检查服务部署状态
|
|
# - python3 /root/tools.py -c
|
|
# - python3 /root/tools.py -c
|
|
# 添加dns解析记录,生成访问域名
|
|
# 添加dns解析记录,生成访问域名
|
|
- #- python3 /root/tools.py -d
|
|
|
|
|
|
+ - python3 /root/tools.py -d
|
|
|
|
|
|
- name: success
|
|
- name: success
|
|
image: hub.evbj.easou.com/dev/drone-wechat:20200622
|
|
image: hub.evbj.easou.com/dev/drone-wechat:20200622
|