From 97d1b9f42400a99dcf1d9877bc94217602fdb396 Mon Sep 17 00:00:00 2001 From: "zhipeng.hu" Date: Sat, 27 Nov 2021 02:02:02 +0800 Subject: [PATCH] drone pull --- .drone.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9a38a16..529777c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,16 +35,22 @@ steps: target: [ "" ] - name: rancher-deploy - image: pelotech/drone-rancher # drone-rancher插件,利用此插件来启动rancher - settings: - url: 'http://121.40.194.123:8082/v3' - access_key: token-qqrhk - secret_key: wt46cz8x8xqz5t7x27htzdc46tscvpnzwzlj9gp99j2cbdrqhtcj25 - service: registry.cn-hangzhou.aliyuncs.com - docker_image: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} # 镜像地址及版本号 - start_first: false - confirm: true - timeout: 301 + image: dubc/drone-rancher-stack-v1 + url: https://121.40.194.123:8443/ + stack: app-staging + accesskey: token-qqrhk + secretkey: wt46cz8x8xqz5t7x27htzdc46tscvpnzwzlj9gp99j2cbdrqhtcj25 + pull: true +# image: pelotech/drone-rancher # drone-rancher插件,利用此插件来启动rancher +# settings: +# url: 'http://121.40.194.123:8082/v3' +# access_key: token-qqrhk +# secret_key: wt46cz8x8xqz5t7x27htzdc46tscvpnzwzlj9gp99j2cbdrqhtcj25 +# service: registry.cn-hangzhou.aliyuncs.com +# docker_image: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} # 镜像地址及版本号 +# start_first: false +# confirm: true +# timeout: 301 # ## 使用参数推送稳定镜像 # - name: deployment-replace-prod