123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- kind: pipeline
- type: kubernetes
- name: offline-process-charge
- clone:
- disable: true
- metadata:
- namespace: drone
- steps:
- - name: clone
- image: hub.evbj.easou.com/dev/alpine-git:20200622
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - name: build
- image: plugins/docker
- settings:
- username: admin
- password: Easou2)1*
- insecure: true
- mirror: https://ci7pm4nx.mirror.aliyuncs.com
- registry: hub.evbj.easou.com
- repo: hub.evbj.easou.com/pro/offline-process-charge
- tag: v1.0.3
- # build_args:
- # - JAR_FILE=offline-process-charge-product.jar
- # - SERVER_PORT=8080
- - name: deployment
- image: hub.evbj.easou.com/dev/drone-agent:v2.0.0
- pull: always
- # privileged: true
- environment:
- JNLP_ENV: pro
- JNLP_REPLICAS: 3
- JNLP_TAG: v1.0.3
- JNLP_VERSION: v1 # default v1, v2 for canary
- DEPLOY_ENV: k8s-2 # �以选择把应用部署到集群:k8s-1 or k8s-2
- JNLP_REPO: hub.evbj.easou.com
- JNLP_CONTAINER_PORT: 80
- JNLP_INGRESS: nginx
- JNLP_SVC_MODE: http
- JNLP_STORAGE_CLASS: rbd
- JNLP_DOMAIN: .ieasou.cn
- JNLP_CONTROL: StatefulSet
- JNLP_STORAGE_CAPACITY: 100Gi
- JNLP_MOUNT_PATH: /data
- JNLP_LIVENESS_INIT: 30
- JNLP_LIVENESS_PER: 15
- JNLP_READINESS_INIT: 30
- JNLP_READINESS_PER: 15
- JNLP_INGRESS_PUB: no
- commands:
- # 切æ�¢ç›®æ ‡é›†ç¾¤
- - kubecm s $DEPLOY_ENV
- # 生��置YAML文件
- - python3 /root/tools.py -b
- # 部署�务到kubernetes上
- - python3 /root/tools.py -a
- # 检查�务部署状�
- - python3 /root/tools.py -c
- # æ·»åŠ dnsè§£æž�记录,生æˆ�访问域å��
- - python3 /root/tools.py -d
- - name: success
- image: hub.evbj.easou.com/dev/drone-wechat:20200622
- settings:
- corpid: ww419ee4063735e1c0
- corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
- agent_id: 1000004
- title: "Pipeline pro/offline-process-charge:v1.0.3 Success"
- description: "${DRONE_BUILD_LINK} pro/offline-process-charge:v1.0.3 部署完æˆ� è§å¢žåŠ è¿žç»åŒ…优化连ç»åŒ…æœˆæ‰£æ¬¾æ—¶é—´ï¼Œå¢žåŠ è¶…æ—¶æ—¶é‡�试"
- msg_url: ${DRONE_BUILD_LINK}
- btn_txt: "�"
- when:
- status:
- - success
- - name: failure
- image: hub.evbj.easou.com/dev/drone-wechat:20200622
- settings:
- corpid: ww419ee4063735e1c0
- corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
- agent_id: 1000004
- title: "Pipeline pro/offline-process-charge:v1.0.3 Failure"
- description: "${DRONE_BUILD_LINK} 部署失败,请检查é…�ç½®ï¼�è§å¢žåŠ è¿žç»åŒ…优化连ç»åŒ…æœˆæ‰£æ¬¾æ—¶é—´ï¼Œå¢žåŠ è¶…æ—¶æ—¶é‡�试"
- msg_url: ${DRONE_BUILD_LINK}
- btn_txt: "�"
- when:
- status:
- - failure
|