SSH agent forwarding is not necessary for rsync
All checks were successful
Deploy website / deploy (push) Successful in 15s

This commit is contained in:
luaneko 2024-12-04 14:26:31 +11:00
parent 3fa8ef43bf
commit c59f0742f9
Signed by: luaneko
GPG Key ID: 406809B8763FF07A

View File

@ -8,10 +8,6 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: luare runs-on: luare
env:
DEPLOY_HOST: lilac.a.lua.re
SSH_OPTS: -o ForwardAgent=yes -o StrictHostKeyChecking=accept-new
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -26,4 +22,4 @@ jobs:
eval "$(ssh-agent -s)" eval "$(ssh-agent -s)"
trap 'eval $(ssh-agent -k)' EXIT trap 'eval $(ssh-agent -k)' EXIT
ssh-add - <<< "${{ secrets.SSH_KEY }}" 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/"