This page describes the steps to setup Continuous Deployment from CircleCI to Scalingo. Follow this guide to automatically deploy to Scalingo after a successful build.
To trigger a deployment after a success build on CircleCI you have to add the
deployment section to your
deployment: production: branch: master commands: - git push email@example.com:my-app.git $CIRCLE_SHA1:master
You can read more about Configuring CircleCI Deployment on the CircleCI documentation.
To deploy to Scalingo from CircleCI, you’ll have to add your private key to the CircleCI interface. On CircleCI website, head over to your project’s Project Settings, then the SSH keys page to add your key. You will also need to add the public key to the SSH Keys page on Scalingo Dashboard.
We recommend to generate a new key pair for integrating CircleCI with Scalingo.
Executing post-deployment commands
You have to download our command line tool in the CircleCI environment and use the
scalingo run command.
deployment: production: branch: production commands: - git push firstname.lastname@example.org:my-app.git $CIRCLE_SHA1:master - curl -LO https://github.com/Scalingo/cli/releases/download/1.6.0/scalingo_1.6.0_linux_amd64.tar.gz - tar xvf scalingo_1.6.0_linux_amd64.tar.gz - scalingo_1.6.0_linux_amd64/scalingo -a my-app login --ssh - scalingo_1.6.0_linux_amd64/scalingo -a my-app run rake db:migrate