From 78f4f15754dc6907a00ba6e096c3d86d484fe8e8 Mon Sep 17 00:00:00 2001 From: DINESH S Date: Wed, 9 Aug 2017 19:54:08 +0530 Subject: [PATCH] Update doc with custom secrets example (#93) fix #19 --- DOCS.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/DOCS.md b/DOCS.md index 9fd1eec..070dd35 100644 --- a/DOCS.md +++ b/DOCS.md @@ -142,6 +142,24 @@ pipeline: + event: tag ``` +Example configuration for using custom secrets: + +```diff +pipeline: + ssh: + image: appleboy/drone-ssh + host: foo.com + username: root + password: 1234 + port: 22 ++ secrets: [ aws_access_key_id ] ++ envs: [ aws_access_key_id ] + script: + - export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID +``` + +This allows us to use custom secrets (The one's that the plugin doesn't expect) which can be used in the script section. + # Parameter Reference host @@ -162,6 +180,9 @@ key key_path : key path of user private key +envs +: custom secrets which are made available in the script section + script : execute commands on a remote server