Ignore garbage to base64 decode
All checks were successful
/ build (push) Successful in 5m34s

This commit is contained in:
Alexander Schäferdiek 2023-08-18 00:18:58 +02:00
parent 9ba8c874c3
commit 1c0c6e9362

View file

@ -9,7 +9,7 @@ jobs:
run: | run: |
pacman -Syu --noconfirm pacman -Syu --noconfirm
pacman -Sy --noconfirm nodejs npm git pacman -Sy --noconfirm nodejs npm git
pacman -Sy --noconfirm shellcheck openssh openssl coreutils rsync pacman -Sy --noconfirm shellcheck openssh rsync
pacman -Scc --noconfirm pacman -Scc --noconfirm
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -39,6 +39,6 @@ jobs:
HOST: ${{ secrets.DEPLOY_SSH_HOST }} HOST: ${{ secrets.DEPLOY_SSH_HOST }}
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo -n $KEY | base64 -d >> ~/.ssh/id_rsa echo -n $KEY | base64 -di >> ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
rsync -az -zz -r --del -e 'ssh -p 2222 -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o StrictHostKeyChecking=no' ${{ github.workspace }}/_pkg/{*.zst,*.db.tar.gz,*.files.tar.gz} $USER@$HOST:/srv/http/myservermanager.com/htdocs/aur/ rsync -az -zz -r --del -e 'ssh -p 2222 -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o StrictHostKeyChecking=no' ${{ github.workspace }}/_pkg/{*.zst,*.db.tar.gz,*.files.tar.gz} $USER@$HOST:/srv/http/myservermanager.com/htdocs/aur/