Drone plugins > Rancher

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

    stringrequired

    the url of the rancher server

    Default: none

  • access_key

    stringrequired

    the access key for the rancher environment

    Secret recommended

    Default: none

  • secret_key

    stringrequired

    the secret key for the rancher environment

    Secret recommended

    Default: none

  • service

    stringrequired

    rancher service on that environment to upgrade

    Default: none

  • start_first

    booleanoptional

    start new container before stopping old one.

    Default: true

  • confirm

    booleanoptional

    auto confirm the service upgrade if successful.

    Default: false

  • timeout

    numberoptional

    the maximum wait time in seconds for the service to upgrade.

    Default: 30

  • docker_image

    stringrequired

    docker image to use to upgrade the environment

    Default: none

  • interval_millis

    numberoptional

    interval in milliseconds between upgrades of the containers

    Default: none

  • batch_size

    numberoptional

    number of containers to upgrade in one batch

    Default: none