Deploy test
All checks were successful
publish / publish (push) Successful in 17s

This commit is contained in:
Marc Riera 2024-12-19 14:41:09 +01:00
parent aabf59fa64
commit 6b10beebf3

View file

@ -32,5 +32,6 @@ jobs:
eval $(ssh-agent -s) eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | ssh-add - echo "$SSH_PRIVATE_KEY" | ssh-add -
apt update && apt install -y rsync apt update && apt install -y rsync
scp /usr/bin/rsync $SSH_USER@$SSH_HOST:/app/rsync mkdir ~/.ssh
rsync -atv --rsync-path=/config/rsync --progress --delete -e "ssh -p $SSH_PORT" ./public $SSH_USER@$SSH_HOST:/app ssh-keyscan -p $SSH_PORT $SSH_HOST > ~/.ssh/known_hosts
rsync -atv --progress --delete -e "ssh -p $SSH_PORT" ./public $SSH_USER@$SSH_HOST:/app