diff --git a/.github/rsync.sh b/.github/rsync.sh index 83c97a5..4202a40 100644 --- a/.github/rsync.sh +++ b/.github/rsync.sh @@ -3,7 +3,7 @@ set -Eeuo pipefail set -x -apt-get update -y && apt-get install -y rsync openssh-client +apt-get update -y && apt-get install -y rsync openssh-client keychain # README.md /tmp/ files.l3d.ch files ./secret_ssh_key printf "Add SSH Private Key" @@ -12,4 +12,9 @@ chmod 700 ~/.ssh mv $5 ~/.ssh/id_ed25519 chmod 400 ~/.ssh/id_ed25519 ssh-keyscan -t ed25519 $3 | tee -a ~/.ssh/known_hosts + +printf "Adding SSH to chain" +eval $(keychain --eval --quiet id_ed25519) + +printf "Starting rsync" rsync --progress $1 $4@$3:$2