From c59f0742f9a37632761ec5724aa71fdf100eb5e0 Mon Sep 17 00:00:00 2001 From: luaneko Date: Wed, 4 Dec 2024 14:26:31 +1100 Subject: [PATCH] SSH agent forwarding is not necessary for rsync --- .gitea/workflows/push.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index eed5f09..b6b8c78 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -8,10 +8,6 @@ on: jobs: deploy: runs-on: luare - env: - DEPLOY_HOST: lilac.a.lua.re - SSH_OPTS: -o ForwardAgent=yes -o StrictHostKeyChecking=accept-new - steps: - name: Checkout uses: actions/checkout@v4 @@ -26,4 +22,4 @@ jobs: eval "$(ssh-agent -s)" trap 'eval $(ssh-agent -k)' EXIT ssh-add - <<< "${{ secrets.SSH_KEY }}" - rsync -avzhe "ssh $SSH_OPTS" --delete 'dist/' "caddy@$DEPLOY_HOST:sites/lua.re/" + rsync -avzh --delete 'dist/' "caddy@lilac.a.lua.re:sites/lua.re/"