Browse Source

drone pull

master
zhipeng.hu 3 years ago
parent
commit
ff5688bf48
  1. 26
      .drone.yml

26
.drone.yml

@ -34,19 +34,19 @@ steps:
when: when:
target: [ "" ] target: [ "" ]
# - name: deployment-replace
# image: repository.241210.com/repository/base/kubectl:4
# commands:
# - sed -i 's!IMAGE_PATH:IMAGE_TAG!'${IMAGE}'!g' deployment.yaml
# when:
# target: [ "develop","test" ]
#
# - name: deploy
# image: repository.241210.com/repository/base/kubectl:4
# commands:
# - kubectl --kubeconfig /kube/${CI_BUILD_TARGET:-develop} apply -f deployment.yaml
# when:
# target: [ "develop","test" ]
- name: deployment-replace
image: pelotech/drone-rancher
commands:
- sed -i 's!IMAGE_PATH:IMAGE_TAG!'${IMAGE}'!g' deployment.yaml
when:
target: [ "develop","test" ]
- name: deploy
image: pelotech/drone-rancher
commands:
- kubectl --kubeconfig /kube/${CI_BUILD_TARGET:-develop} apply -f deployment.yaml
when:
target: [ "develop","test" ]
# ## 使用参数推送稳定镜像 # ## 使用参数推送稳定镜像
# - name: deployment-replace-prod # - name: deployment-replace-prod
# image: repository.241210.com/repository/base/kubectl:4 # image: repository.241210.com/repository/base/kubectl:4

Loading…
Cancel
Save