You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wouldn't it be nice if after a successful pass of the master branch on Travis, the new code would automatically be deployed to https://rorganize.it/ ?
One approach to set this up while continuing to use most of our current deployment configuration would be to:
allow Travis to ssh into our uberspace account
configure travis to do that
Step 1) works by retrieving the pubkey for our repository:
$ travis pubkey
Detected repository as rubycorns/rorganize.it, is this correct? |yes| yes
Public key for rubycorns/rorganize.it:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCe/0eZu1ki+CuInhNx9xjbtD9bMS8L39TnZR4kJxtdZh8fe5X4+Hknwwp5aEYSoOmGt41ZLIOaTEGR8MmvddN+ixgLwJKcd5NUMb+vvjMsjeCTypPjgf6ShRt4ryEw6Iy1ZE2671sg6VPIcrT+CpP4Uh2AauZE8qVdksdIZ9hgvQ==
and adding that to .ssh/authorized_keys on Uberspace.
#!/bin/bash## This script is meant to run on Travis. It deploys via git push to# the target server.set -e
cat <<EOF >> ~/.ssh/configHost rorganize.itStrictHostKeyChecking noEOF
git remote add production [email protected]:rorganize.it
git push -f production production
Not sure if this is everything. Anybody wants to try that?
The text was updated successfully, but these errors were encountered:
Thanks and sorry about that ... I tried to reproduce but couldn't remember how I got it to work at the previous project. I think I'll write an email to Travis support to ask how it worked.
Wouldn't it be nice if after a successful pass of the master branch on Travis, the new code would automatically be deployed to https://rorganize.it/ ?
One approach to set this up while continuing to use most of our current deployment configuration would be to:
Step 1) works by retrieving the pubkey for our repository:
and adding that to
.ssh/authorized_keys
on Uberspace.Step 2) means adding this snippet to .travis.yml:
and a
deploy/travis.sh
:Not sure if this is everything. Anybody wants to try that?
The text was updated successfully, but these errors were encountered: