How do I set up Codeship to deploy to Enclave?
To deploy from Codeship on Aptible, we recommend the following approach:
Create a “Robots” role in your Aptible organization and grant it “Read” and “Manage” permissions on your production account.
Invite a new deploy user to this Robots role. It needs to have a real email address, but can be something like firstname.lastname@example.org.
Log out of your Aptible account.
Accept the invitation for email@example.com and activate the new account by clicking on the link in your invitation email.
Add an SSH key to your user account by navigating to the “SSH Keys” page for the new deployment account. Name the key something like “codeship”, copy the public key from your Codeship projects General settings page, and paste it into the “Public SSH Key” area.
Finally, add a Custom Script deployment with the following command, replacing
[APP_HANDLE]with your actual environment and app handles:
1 git push firstname.lastname@example.org:[ENVIRONMENT_HANDLE]/[APP_HANDLE].git $CI_COMMIT_ID:master
Note: You can confirm the correct git remote URL at the top of the app details page in the Aptible Dashboard.
If you have any issues with the setup, please contact support.