Drone plugins > Rancher
Rancher
by josmo
The Rancher plugin can be used to deploy a Docker image to a Rancher environment.
Example
kind: pipeline
type: docker
name: default
steps:
- name: publish
image: pelotech/drone-rancher
settings:
url: http://awesomehost:awesomeport
access_key: superaccesskey
secret_key: supersecretkey
service: huh/service1
docker_image: huh/hello
Properties
url
stringrequiredthe url of the rancher server
Default: none
access_key
stringrequiredthe access key for the rancher environment
Secret recommendedDefault: none
secret_key
stringrequiredthe secret key for the rancher environment
Secret recommendedDefault: none
service
stringrequiredrancher service on that environment to upgrade
Default: none
start_first
booleanoptionalstart new container before stopping old one.
Default: true
confirm
booleanoptionalauto confirm the service upgrade if successful.
Default: false
timeout
numberoptionalthe maximum wait time in seconds for the service to upgrade.
Default: 30
docker_image
stringrequireddocker image to use to upgrade the environment
Default: none
interval_millis
numberoptionalinterval in milliseconds between upgrades of the containers
Default: none
batch_size
numberoptionalnumber of containers to upgrade in one batch
Default: none