This commit is contained in:
parent
e9a05870d6
commit
79c2459d44
@ -29,9 +29,9 @@ jobs:
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
# Add localhost to known hosts to avoid prompt
|
||||
ssh-keyscan -H localhost >> ~/.ssh/known_hosts
|
||||
# Use your host machine's IP instead of localhost
|
||||
ssh-keyscan -H 172.17.0.1 >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Copy Files to App Server
|
||||
run: |
|
||||
rsync -avz --delete public/ john@localhost:/home/john/mine/scripts/hugo/public/
|
||||
rsync -avz --delete public/ john@172.17.0.1:/home/john/mine/scripts/hugo/public/
|
||||
Loading…
x
Reference in New Issue
Block a user