testv2
All checks were successful
Build / Build for Android (push) Successful in 21s

This commit is contained in:
L3D 2023-05-12 01:12:16 +02:00
parent 3d1e7289b9
commit f2a33855bc
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
2 changed files with 2 additions and 18 deletions

17
.github/rsync.sh vendored
View file

@ -3,19 +3,6 @@
set -Eeuo pipefail set -Eeuo pipefail
set -x 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 echo "Message Body Here" | mail -s "Subject Here" testuser@l3d.ch -A README.md
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

View file

@ -12,9 +12,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Add SSH Key
run: echo "${{ secrets.SSHKEY }}" | tee ./secret_ssh_key > /dev/zero
- name: Testing rsync transfer - name: Testing rsync transfer
run: bash ${GITHUB_WORKSPACE}/.github/rsync.sh README.md /tmp/ files.l3d.ch files ./secret_ssh_key run: bash ${GITHUB_WORKSPACE}/.github/rsync.sh README.md /tmp/ files.l3d.ch files ./secret_ssh_key