From 9fb11fb1f539dca2ede9fd4fbbdded2bb2fd678d Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 17 Nov 2020 10:20:18 +0800 Subject: [PATCH] chore(host): support multiple port https://github.com/appleboy/ssh-action/issues/85 Signed-off-by: Bo-Yi Wu --- .github/workflows/ci.yml | 14 ++++++++++++++ Dockerfile | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2415a20..0ca56b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,3 +118,17 @@ jobs: ls \ -lah use_insecure_cipher: true + + # https://github.com/appleboy/ssh-action/issues/85 + - name: Deployment to multiple hosts with different ports + uses: ./ + with: + host: "${{ secrets.HOST }}:${{ secrets.PORT }}" + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: 1024 + script_stop: true + script: | + ls \ + -lah + use_insecure_cipher: true diff --git a/Dockerfile b/Dockerfile index 042c990..3ff5c6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM appleboy/drone-ssh:1.6.2-linux-amd64 +FROM appleboy/drone-ssh:linux-amd64 ADD entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh