Skip to content

fixing known_hosts

fixing known_hosts #8

Workflow file for this run

name: Deploy to DigitalOcean
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: SSH and Deploy to DigitalOcean
uses: appleboy/ssh-action@master
with:
host: 64.225.102.81
username: root
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
script: |
scp ./scripts/deploy.sh root@64.225.102.81:/tmp/deploy.sh
ssh root@64.225.102.81 'bash /tmp/deploy.sh'