mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2026-09-28 23:08:27 +00:00
Initial code commit
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
# Set deploy key
|
||||
SSH_PATH="$HOME/.ssh"
|
||||
mkdir "$SSH_PATH"
|
||||
echo "$DEPLOY_KEY" > "$SSH_PATH/deploy_key"
|
||||
chmod 600 "$SSH_PATH/deploy_key"
|
||||
|
||||
|
||||
# Do deployment
|
||||
sh -c "rsync $1 -e 'ssh -i $SSH_PATH/deploy_key -o StrictHostKeyChecking=no' $2 $GITHUB_WORKSPACE/ $3"
|
||||
Reference in New Issue
Block a user