Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 2861b51

Browse files
committed
Allow user to add SSH-specific arguments
This can be useful in cases where some more intricate ways to contact the remote server are necessary, e.g. adding '-o' arguments.
1 parent 8ef1b35 commit 2861b51

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ example usage to sync everything in the workspace folder:
99
env:
1010
DEPLOY_KEY: ${{ secrets.SERVER_SSH_KEY }}
1111
ARGS: "-e -c -r --delete"
12+
SSH_ARGS: "-vvvv"
1213
SERVER_PORT: ${{ secrets.SERVER_PORT }}
1314
FOLDER: "./"
1415
SERVER_IP: ${{ secrets.SERVER_IP }}

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ echo "$DEPLOY_KEY" > "$SSHPATH/key"
99
chmod 600 "$SSHPATH/key"
1010
SERVER_DEPLOY_STRING="$USERNAME@$SERVER_IP:$SERVER_DESTINATION"
1111
# sync it up"
12-
sh -c "rsync $ARGS -e 'ssh -i $SSHPATH/key -o StrictHostKeyChecking=no -p $SERVER_PORT' $GITHUB_WORKSPACE/$FOLDER $SERVER_DEPLOY_STRING"
12+
sh -c "rsync $ARGS -e 'ssh -i $SSHPATH/key -o StrictHostKeyChecking=no -p $SERVER_PORT $SSH_ARGS' $GITHUB_WORKSPACE/$FOLDER $SERVER_DEPLOY_STRING"

0 commit comments

Comments
 (0)