Once you’ve completed the steps for Creating a Robot User (Using Codeship, you don’t need to create a new SSH public key for your robot user), you can set up Codeship as follows:

First, Copy the public key from your Codeship project’s General Settings page, and add it in Aptible in your robot user’s Public Key Authentication.

Then, add a Custom Script deployment in Codeship with the following commands:

git fetch --depth=1000000


In the above example,$ENVIRONMENT_HANDLE/$APP_HANDLE.git represents your App’s Git Remote.

Also, see My deploy failed with a git error referencing objects, trees, revisions or commits to understand why you need git fetch here.