|
@@ -4,13 +4,14 @@ name: book-touchrs-base
|
|
|
|
|
|
steps:
|
|
steps:
|
|
- name: build
|
|
- name: build
|
|
- image: hub.evbj.easou.com/dev/drone-agent-custom:v5.0.0
|
|
|
|
|
|
+ image: hub.evbj.easou.com/dev/drone-agent-custom:v6.0.0
|
|
# pull: always
|
|
# pull: always
|
|
privileged: true
|
|
privileged: true
|
|
environment:
|
|
environment:
|
|
JNLP_ENV: pro
|
|
JNLP_ENV: pro
|
|
JNLP_REPLICAS: 5
|
|
JNLP_REPLICAS: 5
|
|
JNLP_TAG: v2.0.0
|
|
JNLP_TAG: v2.0.0
|
|
|
|
+ JNLP_VERSION: v1 #default v1, canary for v2
|
|
JNLP_REPO: hub.evbj.easou.com
|
|
JNLP_REPO: hub.evbj.easou.com
|
|
JNLP_CONTAINER_PORT: 8080
|
|
JNLP_CONTAINER_PORT: 8080
|
|
JNLP_INGRESS: nginx
|
|
JNLP_INGRESS: nginx
|
|
@@ -28,10 +29,14 @@ steps:
|
|
- wrapper.sh /bin/sh
|
|
- wrapper.sh /bin/sh
|
|
- docker --config /etc/docker build -t "$JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG" . -f Dockerfile
|
|
- docker --config /etc/docker build -t "$JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG" . -f Dockerfile
|
|
- docker --config /etc/docker push "$JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG"
|
|
- docker --config /etc/docker push "$JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG"
|
|
- - python ppctl.py -b
|
|
|
|
- - python ppctl.py -a
|
|
|
|
- - python ppctl.py -d
|
|
|
|
- # - python ppctl.py -c
|
|
|
|
|
|
+ # 生成配置YAML文件
|
|
|
|
+ - python tools.py -b
|
|
|
|
+ # 调用kubectl部署服务到kubernetes上
|
|
|
|
+ - python tools.py -a
|
|
|
|
+ # 检查服务部署状态
|
|
|
|
+ - python tools.py -c
|
|
|
|
+ # 添加dns解析记录,生成访问域名
|
|
|
|
+ - python tools.py -d
|
|
|
|
|
|
- name: success
|
|
- name: success
|
|
image: clem109/drone-wechat
|
|
image: clem109/drone-wechat
|