|
@@ -1,10 +1,13 @@
|
|
|
kind: pipeline
|
|
|
-type: docker
|
|
|
+type: kubernetes
|
|
|
name: offline-process-promotion
|
|
|
|
|
|
clone:
|
|
|
disable: true
|
|
|
|
|
|
+metadata:
|
|
|
+ namespace: ci
|
|
|
+
|
|
|
steps:
|
|
|
- name: clone
|
|
|
image: hub.evbj.easou.com/dev/alpine-git:20200622
|
|
@@ -12,15 +15,15 @@ steps:
|
|
|
- git clone $DRONE_GIT_HTTP_URL .
|
|
|
|
|
|
- name: deployment
|
|
|
- image: hub.evbj.easou.com/dev/drone-agent:v3.0.1-1129
|
|
|
+ image: hub.evbj.easou.com/dev/drone-agent:v3.0.1-230506
|
|
|
pull: always
|
|
|
# privileged: true
|
|
|
environment:
|
|
|
JNLP_ENV: qa
|
|
|
JNLP_REPLICAS: 1
|
|
|
- JNLP_TAG: r185635
|
|
|
+ JNLP_TAG: r185685
|
|
|
JNLP_VERSION: v1 # default v1, v2 for canary
|
|
|
- DEPLOY_ENV: k8s-3 # 可以选择把应用部署到集群:k8s-1 or k8s-2
|
|
|
+ DEPLOY_ENV: k8s-2 # 可以选择把应用部署到集群:k8s-1 or k8s-2
|
|
|
JNLP_REPO: hub.evbj.easou.com
|
|
|
JNLP_CONTAINER_PORT: 80
|
|
|
JNLP_INGRESS: nginx
|
|
@@ -53,8 +56,8 @@ steps:
|
|
|
corpid: ww419ee4063735e1c0
|
|
|
corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
|
|
|
agent_id: 1000004
|
|
|
- title: "Pipeline qa/offline-process-promotion:r185635 Success"
|
|
|
- description: "${DRONE_BUILD_LINK} qa/offline-process-promotion:r185635 部署完成 谷歌支付k8s部署"
|
|
|
+ title: "Pipeline qa/offline-process-promotion:r185685 Success"
|
|
|
+ description: "${DRONE_BUILD_LINK} qa/offline-process-promotion:r185685 部署完成 谷歌支付k8s部署"
|
|
|
msg_url: ${DRONE_BUILD_LINK}
|
|
|
btn_txt: "否"
|
|
|
when:
|
|
@@ -67,7 +70,7 @@ steps:
|
|
|
corpid: ww419ee4063735e1c0
|
|
|
corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M
|
|
|
agent_id: 1000004
|
|
|
- title: "Pipeline qa/offline-process-promotion:r185635 Failure"
|
|
|
+ title: "Pipeline qa/offline-process-promotion:r185685 Failure"
|
|
|
description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!谷歌支付k8s部署"
|
|
|
msg_url: ${DRONE_BUILD_LINK}
|
|
|
btn_txt: "否"
|