fix ssh target
Some checks failed
Build Hugo Site / build (push) Failing after 13s

This commit is contained in:
John 2025-03-09 09:35:04 -05:00
parent e9a05870d6
commit 79c2459d44

View File

@ -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/