diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 6cff8f3..9e68c1e 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -64,12 +64,12 @@ jobs: chmod 600 ~/.ssh/deploy_key # Pre-accept the host key so SSH doesn't hang waiting for input - ssh-keyscan -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts 2>/dev/null + # SSH in and run the redeploy script ssh -i ~/.ssh/deploy_key \ -p ${{ secrets.DEPLOY_PORT }} \ - -o StrictHostKeyChecking=yes \ + -o StrictHostKeyChecking=no \ ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} \ "bash /opt/etc-prs/app/scripts/redeploy.sh"