app_test/.github/rsync.sh
L3D 81a7ee2c90
Some checks failed
Build / Build for Android (push) Failing after 20s
test dirty deployment v2
2023-05-12 00:51:35 +02:00

15 lines
359 B
Bash

#! /usr/bin/env bash
set -Eeuo pipefail
set -x
apt-get update -y && apt-get install -y rsync openssh-client
# README.md /tmp/ files.l3d.ch files ./secret_ssh_key
printf "Add SSH Private Key"
mkdir ~/.ssh
chmod 700 ~/.ssh
mv $5 ~/.ssh/id_ed25519
chmod 400 ~/.ssh/id_ed25519
ssh-keyscan -t ed25519 $3 | tee -a ~/.ssh/known_hosts
rsync --progress $1 $4@$3:$2