Skip to content

Commit 1d1b21c

Browse files
authored
Support multiple host with different port (#94)
1 parent 9fb11fb commit 1d1b21c

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM appleboy/drone-ssh:linux-amd64
1+
FROM appleboy/drone-ssh:1.6.3-linux-amd64
22

33
ADD entrypoint.sh /entrypoint.sh
44
RUN chmod +x /entrypoint.sh

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,21 @@ Multiple Hosts
164164
ls -al
165165
```
166166
167+
Multiple Hosts with differebt port
168+
169+
```diff
170+
- name: multiple host
171+
uses: appleboy/ssh-action@master
172+
with:
173+
- host: "foo.com"
174+
+ host: "foo.com:1234,bar.com:5678"
175+
username: ${{ secrets.USERNAME }}
176+
key: ${{ secrets.KEY }}
177+
script: |
178+
whoami
179+
ls -al
180+
```
181+
167182
Synchronous execution on multiple hosts
168183
169184
```diff

0 commit comments

Comments
 (0)