fix(CD): forgot to add server ip
This commit is contained in:
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Add Server to Known Hosts
|
- name: Add Server to Known Hosts
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
ssh-keyscan -H your_server_ip >> ~/.ssh/known_hosts # Replace with your server's IP
|
ssh-keyscan -H ${{ secrets.SSH_SERVER }} >> ~/.ssh/known_hosts # Replace with your server's IP
|
||||||
chmod 600 ~/.ssh/known_hosts
|
chmod 600 ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Deploy via SSH
|
- name: Deploy via SSH
|
||||||
|
|||||||
Reference in New Issue
Block a user