mckernanin
(Kevin Mc Kernan)
February 9, 2018, 8:14pm
1
I can’t figure out how to configure the rancher plugin properly. Here’s my .drone.yml:
pipeline:
notify-start:
image: plugins/slack
secrets: [ slack_webhook ]
template: "<{{build.link}}|Deployment #{{build.number}} started> on <http://github.com/{{repo.owner}}/{{repo.name}}/tree/{{build.branch}}|{{repo.name}}:{{build.branch}}> by {{build.author}}"
build:
image: plugins/docker
repo: mckernanin/elections-react
secrets: [ docker_username, docker_password, react_app_api_url, react_app_sentry ]
use_cache: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
tags:
- latest
- ${DRONE_COMMIT}
deploy-to-rancher:
image: peloton/drone-rancher
url: https://rancher.mckernan.in
secrets: [ rancher_access_key, rancher_secret_key ]
This file has been truncated. show original
And for that repo, here’s a screenshot of the defined secrets:
On my latest build I get this:
time="2018-02-09T19:49:16Z" level=info msg="Drone Rancher Plugin built"
time="2018-02-09T19:49:16Z" level=fatal msg="Eek: Must have url, key, secret, and service definied"
josmo
(Joachim Hill Grannec)
February 9, 2018, 8:26pm
3
You have rancher_access_key, rancher_access_secret that’s being used however it needs to be
rancher_access_key and rancher_secret_key
1 Like