From 1d1b21ca96111b1eb4c03c21c14ebb971d2200f6 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 17 Nov 2020 10:51:06 +0800 Subject: [PATCH] Support multiple host with different port (#94) --- Dockerfile | 2 +- README.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3ff5c6d..93e707f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM appleboy/drone-ssh:linux-amd64 +FROM appleboy/drone-ssh:1.6.3-linux-amd64 ADD entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/README.md b/README.md index 98336a2..e14a81e 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,21 @@ Multiple Hosts ls -al ``` +Multiple Hosts with differebt port + +```diff + - name: multiple host + uses: appleboy/ssh-action@master + with: +- host: "foo.com" ++ host: "foo.com:1234,bar.com:5678" + username: ${{ secrets.USERNAME }} + key: ${{ secrets.KEY }} + script: | + whoami + ls -al +``` + Synchronous execution on multiple hosts ```diff