From 5bb5f676110a3ea2a98fded27ba853f845526b57 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 15 May 2019 06:52:59 +0800 Subject: [PATCH] docs: multiple command --- .github/main.workflow | 14 ++++++++++++++ README.md | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/.github/main.workflow b/.github/main.workflow index 1f5f15f..f7a09d8 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -3,6 +3,7 @@ workflow "Remote ssh commands" { resolves = [ "Executing remote ssh commands", "Support Private Key", + "Multiple Commands", ] } @@ -29,3 +30,16 @@ action "Support Private Key" { "--script", "'ls -al'", ] } + +action "Multiple Commands" { + uses = "appleboy/ssh-action@master" + secrets = [ + "HOST", + "KEY", + ] + args = [ + "--user", "actions", + "--script", "'whoami'", + "--script", "'ls -al'", + ] +} diff --git a/README.md b/README.md index 76d04c3..b2feaa1 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,23 @@ action "Support Private Key" { } ``` +Multiple Commands + +``` +action "Multiple Commands" { + uses = "appleboy/ssh-action@master" + secrets = [ + "HOST", + "KEY", + ] + args = [ + "--user", "actions", + "--script", "'whoami'", + "--script", "'ls -al'", + ] +} +``` + see the detail of `drone-ssh` command ```