Rancher Stack v1
The example Yaml configurations in this file are using the legacy 0.8 syntax. If you are using Drone 1.0 or Drone Cloud please ensure you use the appropriate 1.0 syntax. Learn more here.
A drone.io Rancher Stack plugin to deploy/update an entire Rancher stack (not just a single service) to Rancher v1.6. See Docker Hub for more information.
pipeline:
compile-javascript:
image: node:8.9.4
commands:
- yarn
- yarn build
- git clone 'https://github.com/USERNAME/app-rancher-stack.git' rancher
docker-registry-push:
image: plugins/docker
repo: registry.domain.com:5000/app
registry: registry.domain.com:5000
username: REGISTRY_USERNAME
password: REGISTRY_PASSWORD
insecure: true
pull: true
rancher-v1-staging-upgrade:
image: dubc/drone-rancher-stack-v1
url: rancher.domain.com
stack: app-staging
accesskey: RANCHER_ACCESS_KEY
secretkey: RANCHER_SECRET_KEY
pull: true
Parameter Reference
- url
- The url where your rancher resides. E.g rancher.domain.com
- stack
- This stack must already exist in your rancher environment. E.g app-staging
- accesskey
- Your Rancher environment Access_Key
- secretkey
- Your Rancher environment Secret_Key
- pull
- true. Makes sure you get the latest plugin version