Skip to content

Commit 562c005

Browse files
committed
ci: pass SSH_PORT through to appleboy/ssh-action
The host listens on a non-default port; without `port:` the action defaults to 22 and the SSH connection fails before the deploy script ever runs. Sourcing the value from a new SSH_PORT secret keeps the port off the workflow file (and out of git history) and falls through to 22 when the secret is unset.
1 parent 38bd166 commit 562c005

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
uses: appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
2222
with:
2323
host: ${{ secrets.SSH_HOST }}
24+
port: ${{ secrets.SSH_PORT }}
2425
username: ${{ secrets.SSH_USER }}
2526
key: ${{ secrets.SSH_KEY }}
2627
script: |

0 commit comments

Comments
 (0)