This prevents us from being able to check the effect of PRs on the staging site before merging them. When attempting to push PR builds, the following error occurs:
$ bundle exec cap staging deploy
INFO[51110713] Running /usr/bin/env mkdir -p /tmp/wpdev.thepoliticalrev.org/ on 45.55.137.23
DEBUG[51110713] Command: ( WP_ENV=staging /usr/bin/env mkdir -p /tmp/wpdev.thepoliticalrev.org/ )
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host 45.55.137.23: Authentication failed for user deploy@45.55.137.23
/home/travis/.rvm/gems/ruby-1.9.3-p551/gems/net-ssh-2.9.1/lib/net/ssh.rb:219:in `start'
I suspect this may be an issue with Capistrano forwarding GitHub user ssh keys instead of using its own deploy key.
This prevents us from being able to check the effect of PRs on the staging site before merging them. When attempting to push PR builds, the following error occurs:
I suspect this may be an issue with Capistrano forwarding GitHub user ssh keys instead of using its own deploy key.