Support multiple host with different port (#94)

This commit is contained in:
Bo-Yi Wu 2020-11-17 10:51:06 +08:00 committed by GitHub
parent 9fb11fb1f5
commit 1d1b21ca96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -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

View File

@ -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