-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Host key verification failed." when using rsync #17
Comments
I just discovered that I forgot to set this in my set('rsync_src', function () {
return __DIR__;
}); Hence the strange rsync source in the log above. Still not working though (still getting the "Host key verification failed." error). |
rsync works if I'm doing this in my Github Action instead: name: Deploy to dev
on:
push:
branches: develop
jobs:
deploy:
name: Deploy to dev
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/develop'
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Get Deployer version
run: vendor/bin/dep -V
- name: Deploy to dev
run: vendor/bin/dep deploy dev -vvv
env:
SSH_HOST: ${{ secrets.DEV_SSH_HOST }}
SSH_PORT: ${{ secrets.DEV_SSH_PORT }}
SSH_USER: ${{ secrets.DEV_SSH_USER }}
DEPLOY_PATH: ${{ secrets.DEV_DEPLOY_PATH }} That is, I'm using https://github.com/shimataro/ssh-key-action to install the SSH key and "local" composer version of Deployer. My current conclusion is that |
The same error when I try to use the
|
This seems to be a slightly different issue than #16 or #2 so I'm making a new one, hope that's ok. My current setup (with
SSH_KNOWN_HOSTS
) seems to work fine just up until Deployer tries to rsync to the server.Perhaps the problem is that
SSH_PRIVATE_KEY
isn't exposed to the rsync over SSH tunnel? Or am I doing something wrong?Below is my setup, inspired by https://atymic.dev/blog/github-actions-laravel-ci-cd/.
deploy.php:
deploy.dev.yml:
Log excerpt from Github Actions:
The text was updated successfully, but these errors were encountered: