From f725d02d7bf53a43410762dc40dbc245a9393f1f Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 25 Sep 2020 22:21:39 +0800 Subject: [PATCH] chore: add drone env Signed-off-by: Bo-Yi Wu --- DOCS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DOCS.md b/DOCS.md index fed8677..1e1b187 100644 --- a/DOCS.md +++ b/DOCS.md @@ -112,6 +112,8 @@ Example configuration for exporting custom secrets: ```diff - name: ssh commands image: appleboy/drone-ssh + environment: + commit: ${DRONE_BUILD_NUMBER} settings: host: foo.com username: root @@ -119,6 +121,7 @@ Example configuration for exporting custom secrets: port: 22 + envs: - aws_access_key_id + - commit script: - export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID ```