yangxg 3 жил өмнө
parent
commit
5799f7d21d

+ 0 - 1
Dockerfile-elasticsearch

@@ -1 +0,0 @@
-FROM docker.elastic.co/elasticsearch/elasticsearch:7.6.2

+ 0 - 1
Dockerfile-kafka

@@ -1 +0,0 @@
-FROM docker.io/bitnami/kafka:2.4.1-debian-10-r58

+ 0 - 1
Dockerfile-kafka-manager

@@ -1 +0,0 @@
-FROM hlebalbau/kafka-manager:stable

+ 0 - 1
Dockerfile-kibana

@@ -1 +0,0 @@
-FROM docker.elastic.co/kibana/kibana:7.6.2

+ 0 - 1
Dockerfile-logstash

@@ -1 +0,0 @@
-FROM logstash:7.6.2

+ 0 - 1
Dockerfile-zookeeper

@@ -1 +0,0 @@
-FROM leolee32/kubernetes-library:kubernetes-zookeeper1.0-3.4.10

+ 1 - 1
deploy-tmp-elasticsearch.yaml

@@ -47,7 +47,7 @@ spec:
               protocol: TCP
           volumeMounts:
             - name: volume
-              mountPath: /data/elasticsearch
+              mountPath: /usr/share/elasticsearch/data
           env:
             - name: cluster.name
               value: k8s-es-logs

+ 1 - 1
deploy-tmp-logstash.yaml

@@ -8,7 +8,7 @@ data:
   logstash-config-named-k8s: |
     input {
       kafka {
-          bootstrap_servers => ["kafka-0.kafka-svc.[ENV].svc.cluster.local:9093,kafka-1.kafka-svc.[ENV].svc.cluster.local:9093,kafka-2.kafka-svc.[ENV].svc.cluster.local:9093"]
+          bootstrap_servers => ["kafka-0.kafka-headless.[ENV].svc.cluster.local:9093,kafka-1.kafka-headless.[ENV].svc.cluster.local:9093,kafka-2.kafka-headless.[ENV].svc.cluster.local:9093"]
           group_id => "es-test"
           topics => ["offline-process-topic"]
           codec => json

+ 0 - 93
drone.elasticsearch.yml

@@ -1,93 +0,0 @@
-kind: pipeline
-type: kubernetes
-name: elasticsearch
-
-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/[ENV]/elasticsearch
-      tag: v1.0
-  #    build_args:
-  #      - JAR_FILE=
-  #      - SERVER_PORT=8080
-
-  - name: deployment
-    image: hub.evbj.easou.com/dev/drone-agent:v2.0.0
-    pull: always
-    # privileged: true
-    environment:
-      JNLP_ENV: [ENV]
-      JNLP_REPLICAS: 1
-      JNLP_TAG: v1.0
-      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 [ENV]/elasticsearch:v1.0 Success"
-      description: "${DRONE_BUILD_LINK} [ENV]/elasticsearch:v1.0 部署完成"
-      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 [ENV]/elasticsearch:v1.0 Failure"
-      description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!"
-      msg_url: ${DRONE_BUILD_LINK}
-      btn_txt: "否"
-    when:
-      status:
-        - failure

+ 0 - 93
drone.kafka-manager.yml

@@ -1,93 +0,0 @@
-kind: pipeline
-type: kubernetes
-name: kafka-manager
-
-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/[ENV]/kafka-manager
-      tag: v1.0
-  #    build_args:
-  #      - JAR_FILE=
-  #      - SERVER_PORT=8080
-
-  - name: deployment
-    image: hub.evbj.easou.com/dev/drone-agent:v2.0.0
-    pull: always
-    # privileged: true
-    environment:
-      JNLP_ENV: [ENV]
-      JNLP_REPLICAS: 1
-      JNLP_TAG: v1.0
-      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 [ENV]/kafka-manager:v1.0 Success"
-      description: "${DRONE_BUILD_LINK} [ENV]/kafka-manager:v1.0 部署完成"
-      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 [ENV]/kafka-manager:v1.0 Failure"
-      description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!"
-      msg_url: ${DRONE_BUILD_LINK}
-      btn_txt: "否"
-    when:
-      status:
-        - failure

+ 0 - 93
drone.kafka.yml

@@ -1,93 +0,0 @@
-kind: pipeline
-type: kubernetes
-name: kafka
-
-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/[ENV]/kafka
-      tag: v1.0
-  #    build_args:
-  #      - JAR_FILE=
-  #      - SERVER_PORT=8080
-
-  - name: deployment
-    image: hub.evbj.easou.com/dev/drone-agent:v2.0.0
-    pull: always
-    # privileged: true
-    environment:
-      JNLP_ENV: [ENV]
-      JNLP_REPLICAS: 1
-      JNLP_TAG: v1.0
-      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 [ENV]/kafka:v1.0 Success"
-      description: "${DRONE_BUILD_LINK} [ENV]/kafka:v1.0 部署完成"
-      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 [ENV]/kafka:v1.0 Failure"
-      description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!"
-      msg_url: ${DRONE_BUILD_LINK}
-      btn_txt: "否"
-    when:
-      status:
-        - failure

+ 0 - 93
drone.kibana.yml

@@ -1,93 +0,0 @@
-kind: pipeline
-type: kubernetes
-name: kibana
-
-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/[ENV]/kibana
-      tag: v1.0
-  #    build_args:
-  #      - JAR_FILE=
-  #      - SERVER_PORT=8080
-
-  - name: deployment
-    image: hub.evbj.easou.com/dev/drone-agent:v2.0.0
-    pull: always
-    # privileged: true
-    environment:
-      JNLP_ENV: [ENV]
-      JNLP_REPLICAS: 1
-      JNLP_TAG: v1.0
-      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 [ENV]/kibana:v1.0 Success"
-      description: "${DRONE_BUILD_LINK} [ENV]/kibana:v1.0 部署完成"
-      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 [ENV]/kibana:v1.0 Failure"
-      description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!"
-      msg_url: ${DRONE_BUILD_LINK}
-      btn_txt: "否"
-    when:
-      status:
-        - failure

+ 0 - 93
drone.logstash.yml

@@ -1,93 +0,0 @@
-kind: pipeline
-type: kubernetes
-name: logstash
-
-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/[ENV]/logstash
-      tag: v1.0
-  #    build_args:
-  #      - JAR_FILE=
-  #      - SERVER_PORT=8080
-
-  - name: deployment
-    image: hub.evbj.easou.com/dev/drone-agent:v2.0.0
-    pull: always
-    # privileged: true
-    environment:
-      JNLP_ENV: [ENV]
-      JNLP_REPLICAS: 1
-      JNLP_TAG: v1.0
-      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 [ENV]/logstash:v1.0 Success"
-      description: "${DRONE_BUILD_LINK} [ENV]/logstash:v1.0 部署完成"
-      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 [ENV]/logstash:v1.0 Failure"
-      description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!"
-      msg_url: ${DRONE_BUILD_LINK}
-      btn_txt: "否"
-    when:
-      status:
-        - failure

+ 0 - 93
drone.zookeeper.yml

@@ -1,93 +0,0 @@
-kind: pipeline
-type: kubernetes
-name: zookeeper
-
-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/[ENV]/zookeeper
-      tag: v1.0
-  #    build_args:
-  #      - JAR_FILE=
-  #      - SERVER_PORT=8080
-
-  - name: deployment
-    image: hub.evbj.easou.com/dev/drone-agent:v2.0.0
-    pull: always
-    # privileged: true
-    environment:
-      JNLP_ENV: [ENV]
-      JNLP_REPLICAS: 1
-      JNLP_TAG: v1.0
-      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 [ENV]/zookeeper:v1.0 Success"
-      description: "${DRONE_BUILD_LINK} [ENV]/zookeeper:v1.0 部署完成"
-      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 [ENV]/zookeeper:v1.0 Failure"
-      description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!"
-      msg_url: ${DRONE_BUILD_LINK}
-      btn_txt: "否"
-    when:
-      status:
-        - failure

+ 2 - 25
k8s-deploy.sh

@@ -57,30 +57,7 @@ echo "最终要部署的应用${currApp}"
 echo "环境${ENV}"
 echo "----------------------------------"
 
-cd $DEPLOY_HOME || exit
-rm -rf .tmp && mkdir .tmp && cd .tmp || exit
+cp -f deploy-tmp-${currApp}.yaml deploy-tmp.yaml
 
-git config --global user.email "yangxg_yang@easou.cn"
-git config --global user.name "${USER}"
-git config --global credential.helper store
+sed -i.bak 's/\[ENV\]/'$ENV'/g' deploy-tmp-${currApp}.yaml
 
-
-git clone http://yangxg:yangtxy1256@gogs.ieasou.cn/yangxg/${currApp}.git ${currApp} && cd ${currApp} || exit
-cp -f ../../deploy-tmp-${currApp}.yaml deploy-tmp.yaml
-cp -f ../../drone.${currApp}.yml .drone.yml
-cp -f ../../Dockerfile-${currApp} Dockerfile
-
-sed -i.bak 's/\[ENV\]/'$ENV'/g' deploy-tmp.yaml
-sed -i.bak 's/\[ENV\]/'$ENV'/g' .drone.yml
-sed -i.bak 's/\[ENV\]/'$ENV'/g' Dockerfile
-
-git add deploy-tmp.yaml
-git add .drone.yml
-git add Dockerfile
-echo "git commit"
-git commit --allow-empty -m "deploy $ENV/${currApp}:1.0"
-echo "git push"
-git push origin master
-
-cd $DEPLOY_HOME || exit
-rm -rf .tmp