Skip to content

Commit

Permalink
Support multiple host with different port (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy authored Nov 17, 2020
1 parent 9fb11fb commit 1d1b21c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d1b21c

Please sign in to comment.