mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2024-10-22 06:03:45 +02:00
10 lines
333 B
Bash
Executable file
10 lines
333 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
# Start the SSH agent and load key.
|
|
source agent-start "$GITHUB_ACTION"
|
|
echo "$INPUT_REMOTE_KEY" | agent-add
|
|
|
|
# Do deployment
|
|
sh -c "rsync $INPUT_SWITCHES -e 'ssh -o StrictHostKeyChecking=no -p $INPUT_REMOTE_PORT $INPUT_RSH' $GITHUB_WORKSPACE/$INPUT_PATH $INPUT_REMOTE_USER@$INPUT_REMOTE_HOST:$INPUT_REMOTE_PATH"
|