From 7f53fc64c8b0680925ac307b3c72ee0ef395f85a Mon Sep 17 00:00:00 2001 From: Michael de Wit Date: Mon, 3 Jul 2017 08:24:37 +0200 Subject: [PATCH] Improve 0.6+ docs --- DOCS.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/DOCS.md b/DOCS.md index a4834c6..7badf39 100644 --- a/DOCS.md +++ b/DOCS.md @@ -70,11 +70,11 @@ The example above illustrates a situation where an app package (`app.tar.gz`) wi The script passed to **script** will be executed on remote machines directly after rsync completes to deploy the files. It will be executed step by step until a command returns a non-zero exit-code. If this happens, the entire plugin will exit and fail the build. -## Key in drone >= 0.7 +## SSH key secret in Drone >= 0.6 -For drone 0.7 or drone 0.8: -register your key with: -``` bash +Secret injection has changed for Drone 0.6 and up. Register your SSH key secret using the drone-cli. + +```sh drone secret update \ --repository your/repo \ --name plugin_key \ @@ -82,7 +82,8 @@ drone secret update \ --image drillster/drone-rsync ``` -Do not add a `key` entry in `.drone`, but add: +Do not add a `key` parameter in `.drone.yml` configuration, but add: + ``` secrets: [ plugin_key ] ```