Once you've completed the steps for CI Integration (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 Authentication.
Then, add a Custom Script deployment in Codeship with the following commands:
git fetch --depth=1000000 git push [email protected]:$ENVIRONMENT_HANDLE/$APP_HANDLE.git $CI_COMMIT_ID:master
Also, see My deploy failed with a git error referencing objects, trees, revisions or commits to understand why you need
Updated 6 months ago