From 278c945573c5c65a3ef08a8a366893f75fb7ab0f Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 7 Nov 2024 23:46:31 +0100 Subject: [PATCH] ssh-agent --- .gitea/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 3ac1910..6108ff1 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -18,6 +18,8 @@ jobs: ls -lha printf "%s" "${{ secrets.ID_ED25519 }}" > ./id_ed25519 chmod 600 ./id_ed25519 # Set proper permissions + eval "$(ssh-agent -s)" + ssh-add ./id_ed25519 apt-get update apt-get install -y rsync rsync -avz --delete --exclude=".env" --exclude="storage/logs/laravel.log" --exclude="laravel/node_modules" -e "ssh -i ./id_ed25519 -o StrictHostKeyChecking=no" ./ albert@217.160.204.114:/var/www/vhosts/electricistasdana.com/httpdocs