This commit is contained in:
parent
3d1e7289b9
commit
f2a33855bc
2 changed files with 2 additions and 18 deletions
17
.github/rsync.sh
vendored
17
.github/rsync.sh
vendored
|
@ -3,19 +3,6 @@
|
|||
set -Eeuo pipefail
|
||||
set -x
|
||||
|
||||
apt-get update -y && apt-get install -y rsync openssh-client keychain coreutils
|
||||
apt-get update -y && apt-get install -y mailutils
|
||||
|
||||
# README.md /tmp/ files.l3d.ch files ./secret_ssh_key
|
||||
printf "Add SSH Private Key"
|
||||
mkdir ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
cat $5 | sha256sum
|
||||
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
|
||||
echo "Message Body Here" | mail -s "Subject Here" testuser@l3d.ch -A README.md
|
||||
|
|
3
.github/workflows/buildozer.yml
vendored
3
.github/workflows/buildozer.yml
vendored
|
@ -12,9 +12,6 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Add SSH Key
|
||||
run: echo "${{ secrets.SSHKEY }}" | tee ./secret_ssh_key > /dev/zero
|
||||
|
||||
- name: Testing rsync transfer
|
||||
run: bash ${GITHUB_WORKSPACE}/.github/rsync.sh README.md /tmp/ files.l3d.ch files ./secret_ssh_key
|
||||
|
||||
|
|
Loading…
Reference in a new issue