From d5e4d4798ef5e3a56ea6b9e2460f61595dbe36a0 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 15 May 2019 07:13:49 +0800 Subject: [PATCH] chore: add drone-ssh version. --- Dockerfile | 2 +- README.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2d9ece9..db64467 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM appleboy/drone-ssh +FROM appleboy/drone-ssh:1.5.0-linux-amd64 # Github labels LABEL "com.github.actions.name"="SSH Commands" diff --git a/README.md b/README.md index fdd47a2..51d5e84 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,24 @@ action "Multiple Commands" { +Multiple Hosts + +``` +action "Multiple Hosts" { + uses = "appleboy/ssh-action@master" + secrets = [ + "KEY", + ] + args = [ + "--host", "foo.com", + "--host", "bar.com", + "--user", "actions", + "--script", "'whoami'", + "--script", "'ls -al'", + ] +} +``` + see the detail of `drone-ssh` command ```