josmo / drone-rancher

Drone plugin for triggering Rancher deployments
53 stars 35 forks source link

How to clear a specific rancher environment? #30

Closed sirius1024 closed 6 years ago

sirius1024 commented 6 years ago

I have many environment in rancher, How to assign a specific one to drone-rancher to update stack/service?

0rax commented 6 years ago

Hey, I do not know if there is a specific way of doing so with a multi-environment API Key though I would suggest to use an environment specific key for the plugin, which can be created in API > Keys section under Advanced options.

The key generated here will only have access to the specific environment it has been created in and will allow you to do what you want.

sirius1024 commented 6 years ago

Thanks for your help! It worked with your idea.

josmo commented 6 years ago

@sirius1024 since it sounds like you have a solution I'm going to close it out. Feel free to re-open if it's still an issue :)