Skip to content

Commit a1ec0cc

Browse files
committed
update ssh command
1 parent 625e757 commit a1ec0cc

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/deploy-to-cs-wm-edu.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,5 @@ jobs:
2626
key: ${{ secrets.SSH_PRIVATE_KEY }}
2727
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
2828

29-
- name: Create ssh config
30-
run: |
31-
touch ~/.ssh/config
32-
echo 'Host *.wm.edu !bastion.wm.edu !code.wm.edu' >> ~/.ssh/config
33-
echo ' ProxyJump ${{ vars.SSH_USERNAME }}@bastion.wm.edu' >> ~/.ssh/config
34-
35-
- name: Add host to known hosts
36-
run: ssh-keyscan -H ${{ vars.CS_DEPT_HOST }} >> ~/.ssh/known_hosts
37-
3829
- name: Deploy with rsync
39-
run: rsync -rcvz --delete --exclude='.git*' --exclude='.zfs' -e 'ssh -A -J ${{ vars.SSH_USERNAME }}@bastion.wm.edu ${{ vars.SSH_USERNAME }}@${{ vars.CS_DEPT_HOST }}' _site/ "dest:${{ vars.DEPLOY_DIRECTORY }}/"
30+
run: rsync -rcvz --delete --exclude='.git*' --exclude='.zfs' -e 'ssh -o StrictHostKeyChecking=no -A -J ${{ vars.SSH_USERNAME }}@bastion.wm.edu ${{ vars.SSH_USERNAME }}@${{ vars.CS_DEPT_HOST }}' _site/ "dest:${{ vars.DEPLOY_DIRECTORY }}/"

0 commit comments

Comments
 (0)