From 6b10beebf32cdeefce3a0ef858767d34a934b8d2 Mon Sep 17 00:00:00 2001 From: Marc Riera Date: Thu, 19 Dec 2024 14:41:09 +0100 Subject: [PATCH] Deploy test --- .forgejo/workflows/build.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index f8b9ba2..2f78f8e 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -32,5 +32,6 @@ jobs: eval $(ssh-agent -s) echo "$SSH_PRIVATE_KEY" | ssh-add - apt update && apt install -y rsync - scp /usr/bin/rsync $SSH_USER@$SSH_HOST:/app/rsync - rsync -atv --rsync-path=/config/rsync --progress --delete -e "ssh -p $SSH_PORT" ./public $SSH_USER@$SSH_HOST:/app + mkdir ~/.ssh + 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