|
@@ -5,15 +5,15 @@ name: eavideo-admin
|
|
clone:
|
|
clone:
|
|
disable: true
|
|
disable: true
|
|
|
|
|
|
-
|
|
|
|
metadata:
|
|
metadata:
|
|
namespace: ci
|
|
namespace: ci
|
|
|
|
|
|
|
|
+
|
|
steps:
|
|
steps:
|
|
- name: clone
|
|
- name: clone
|
|
image: hub.evbj.easou.com/dev/alpine-git:20200622
|
|
image: hub.evbj.easou.com/dev/alpine-git:20200622
|
|
commands:
|
|
commands:
|
|
- - git clone --depth=1 $DRONE_GIT_HTTP_URL .
|
|
|
|
|
|
+ - git clone $DRONE_GIT_HTTP_URL .
|
|
|
|
|
|
- name: build
|
|
- name: build
|
|
image: plugins/docker
|
|
image: plugins/docker
|
|
@@ -22,7 +22,7 @@ steps:
|
|
password: Easou2)1*
|
|
password: Easou2)1*
|
|
insecure: true
|
|
insecure: true
|
|
custom_dns: 223.5.5.5
|
|
custom_dns: 223.5.5.5
|
|
- mirror: https://ci7pm4nx.mirror.aliyuncs.com
|
|
|
|
|
|
+ mirror: https://tfstj46s.mirror.aliyuncs.com
|
|
registry: hub.evbj.easou.com
|
|
registry: hub.evbj.easou.com
|
|
repo: hub.evbj.easou.com/rec/${DRONE_REPO_NAME}
|
|
repo: hub.evbj.easou.com/rec/${DRONE_REPO_NAME}
|
|
tag: v1.0.11
|
|
tag: v1.0.11
|
|
@@ -36,7 +36,7 @@ steps:
|
|
JNLP_REPLICAS: 1
|
|
JNLP_REPLICAS: 1
|
|
JNLP_TAG: v1.0.11
|
|
JNLP_TAG: v1.0.11
|
|
JNLP_VERSION: v1 # default v1, v2 for canary
|
|
JNLP_VERSION: v1 # default v1, v2 for canary
|
|
- DEPLOY_ENV: k8s-4 # 可以选择把应用部署到集群:k8s-1 or k8s-2 or k8s-4
|
|
|
|
|
|
+ DEPLOY_ENV: k8s-4 # 可以选择把应用部署到集群:k8s-1 or k8s-2 or k8s-3
|
|
JNLP_REPO: hub.evbj.easou.com
|
|
JNLP_REPO: hub.evbj.easou.com
|
|
JNLP_CONTAINER_PORT: 6005
|
|
JNLP_CONTAINER_PORT: 6005
|
|
JNLP_INGRESS: nginx
|
|
JNLP_INGRESS: nginx
|
|
@@ -44,12 +44,12 @@ steps:
|
|
JNLP_STORAGE_CLASS: rbd
|
|
JNLP_STORAGE_CLASS: rbd
|
|
JNLP_DOMAIN: .ieasou.cn
|
|
JNLP_DOMAIN: .ieasou.cn
|
|
JNLP_CONTROL: StatefulSet
|
|
JNLP_CONTROL: StatefulSet
|
|
- JNLP_STORAGE_CAPACITY: 1Gi
|
|
|
|
|
|
+ JNLP_STORAGE_CAPACITY: 100Gi
|
|
JNLP_MOUNT_PATH: /data
|
|
JNLP_MOUNT_PATH: /data
|
|
- JNLP_LIVENESS_INIT: 40
|
|
|
|
- JNLP_LIVENESS_PER: 20
|
|
|
|
- JNLP_READINESS_INIT: 40
|
|
|
|
- JNLP_READINESS_PER: 20
|
|
|
|
|
|
+ JNLP_LIVENESS_INIT: 60
|
|
|
|
+ JNLP_LIVENESS_PER: 15
|
|
|
|
+ JNLP_READINESS_INIT: 60
|
|
|
|
+ JNLP_READINESS_PER: 15
|
|
JNLP_INGRESS_PUB: no
|
|
JNLP_INGRESS_PUB: no
|
|
commands:
|
|
commands:
|
|
# 切换目标集群
|
|
# 切换目标集群
|
|
@@ -61,8 +61,7 @@ steps:
|
|
# 检查服务部署状态
|
|
# 检查服务部署状态
|
|
#- 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
|