Browse Source

drone pull

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

26
.drone.yml

@ -34,16 +34,24 @@ steps:
# when: # when:
# target: [ "" ] # target: [ "" ]
- name: rancher-deploy
# drone-rancher插件,利用此插件来启动rancher
# - name: rancher-deploy
# # drone-rancher插件,利用此插件来启动rancher
# image: pelotech/drone-rancher
# settings:
# # rancher-server地址
# url: 'https://121.40.194.123:8443'
# access_key: token-qqrhk
# secret_key: fwbzktwzs4kqf8p4pzsfn92thzms76vrglghh2khmdxkr6svm57796
# service: pre/default
# # 为了使rancher能拉取到私有镜像, 需要在rancher控制面板"基础架构->镜像库"添加这个私有镜像库
# docker_image: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:20
- name: run
image: pelotech/drone-rancher image: pelotech/drone-rancher
settings:
# rancher-server地址
url: 'https://121.40.194.123:8443'
access_key: token-qqrhk
secret_key: wt46cz8x8xqz5t7x27htzdc46tscvpnzwzlj9gp99j2cbdrqhtcj25
service: default/drone-test
# 为了使rancher能拉取到私有镜像, 需要在rancher控制面板"基础架构->镜像库"添加这个私有镜像库
url: https://121.40.194.123:8443
access_key: token-j24z5
secret_key: fwbzktwzs4kqf8p4pzsfn92thzms76vrglghh2khmdxkr6svm57796
service: pre/default
docker_image: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:20 docker_image: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:20
# - name: rancher-deploy # - name: rancher-deploy

Loading…
Cancel
Save