SSH agent forwarding is not necessary for rsync
All checks were successful
Deploy website / deploy (push) Successful in 15s
All checks were successful
Deploy website / deploy (push) Successful in 15s
This commit is contained in:
parent
3fa8ef43bf
commit
c59f0742f9
@ -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/"
|
||||
|
Loading…
Reference in New Issue
Block a user