I just try to inject a kontena token (to deploy latest build) via kontena vault and drone PLUGIN_PARAMS, but it seems that drone don’t care about the variable PLUGIN_PARAMS set as an environment variable. Is that right? Or can a pass PLUGIN_PARAMS to drone inside the docker container?
Install drone on kontena.io: https://github.com/kontena/examples/tree/master/drone/0.5
-> i change / add the following:
- secret: DRONE_PLUGIN_PARAMS
DRONE_PLUGIN_PARAMS is set to “KONTENA_TOKEN=ABC…XYZ” in kontena vault.
.drone.yml looks like:
but in the drone log I see: “KONTENA_TOKEN=$$KONTENA_TOKEN” . hmmm???
Well PLUGIN_PARAMS is not mentioned here: http://readme.drone.io/0.5/install/server-configuration/ - so maybe it is impossible?
An other question: is it possible to get into the drone-container to verify the environment variables? I tried it with docker exec -it XYZ bash and sh, but without success.
Ciao … Iver