Skip to content

Commit

Permalink
fix: allow rsa hostkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
GoliathLabs authored Jan 5, 2025
1 parent aea071c commit 10f42d5
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ jobs:
- name: Verify _site directory
run: ls -al ${{ github.workspace }}/_site

- name: Deploy via SSH and rsync
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
run: |
mkdir -p ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${{ matrix.target }}.ext.ffmuc.net >> ~/.ssh/known_hosts
rsync -avzvr --delete \
${{ github.workspace }}/_site/ \
deploy-ffmuc@${{ matrix.target }}.ext.ffmuc.net:/srv/www/ffmuc.net/
- name: Deploy via rsync
uses: burnett01/rsync-deployments@5.2
with:
switches: -avzr --delete
path: ${{ github.workspace }}/_site/
remote_path: /srv/www/ffmuc.net/
remote_host: ${{ matrix.target }}.ext.ffmuc.net
remote_user: deploy-ffmuc
legacy_allow_rsa_hostkeys: "true"
remote_key: ${{ secrets.DEPLOY_KEY }}

0 comments on commit 10f42d5

Please sign in to comment.