ci: configure known hosts for deploy workflow
This commit is contained in:
@@ -23,6 +23,13 @@ jobs:
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||
|
||||
- name: Configure known hosts
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
printf '%s\n' "${{ secrets.DEPLOY_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
|
||||
- name: Sync project to server
|
||||
run: |
|
||||
rsync -az --delete \
|
||||
|
||||
Reference in New Issue
Block a user