From 08185f368913b9f367d5acf8b1c46da4b16f84d8 Mon Sep 17 00:00:00 2001 From: "zhipeng.hu" Date: Sat, 27 Nov 2021 03:20:20 +0800 Subject: [PATCH] drone pull --- .drone.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index db387f4..9834eea 100644 --- a/.drone.yml +++ b/.drone.yml @@ -34,17 +34,23 @@ steps: when: target: [ "" ] - - name: rancher-deploy - image: peloton/drone-rancher - url: https://121.40.194.123:8443/ - access_key: token-qqrhk - secret_key: wt46cz8x8xqz5t7x27htzdc46tscvpnzwzlj9gp99j2cbdrqhtcj25 - service: pre/drone-test - # 为了使rancher能拉取到私有镜像, 需要在rancher控制面板"基础架构->镜像库"添加这个私有镜像库 - docker_image: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} # 镜像地址及版本号 - start_first: true # 先启动新服务, 后停止原服务. 如果为false则先关闭原服务再启动 - confirm: true - timeout: 100 # 如果rancher没在这个时间内升级成功则报错, 服务大小等差异会导致升级时间不一样, 可根据自己业务修改超时时间. + - name: deploy + image: vallard/drone-kube + template: deployment.yaml + namespace: default + server: https://121.40.194.123:8443 + +# - name: rancher-deploy +# image: peloton/drone-rancher +# url: https://121.40.194.123:8443/ +# access_key: token-qqrhk +# secret_key: wt46cz8x8xqz5t7x27htzdc46tscvpnzwzlj9gp99j2cbdrqhtcj25 +# service: default/drone-test +# # 为了使rancher能拉取到私有镜像, 需要在rancher控制面板"基础架构->镜像库"添加这个私有镜像库 +# docker_image: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} # 镜像地址及版本号 +# start_first: true # 先启动新服务, 后停止原服务. 如果为false则先关闭原服务再启动 +# confirm: true +# timeout: 100 # 如果rancher没在这个时间内升级成功则报错, 服务大小等差异会导致升级时间不一样, 可根据自己业务修改超时时间. # image: pelotech/drone-rancher # drone-rancher插件,利用此插件来启动rancher