Continuous Deployment with Codeship and Dokku

The following steps will help you successfully deploy from Codeship to Dokku. This will not take long to implement. You only need the public ssh key from your Codeship project and the bash script below.

Save the public key of the Codeship project. It is found in Project Settings > General Settings.

In project repo create a folder labeled tmp, then save the ssh key as codeship_projectname.pub.

Make sure when pasting, all the contents are in a single line and not multiple lines.

Add the public key to your dokku server using the following command in console.
​