Deploy to Scalingo from CircleCI
This page describes 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 Circle you have to add the
deployment section to your
deployment: production: branch: master commands: - git push email@example.com:example-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 recommand to generate a new key pair for integrating CircleCI with Scalingo.
Executing post-delpoyment commands
You’ve 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:example-app.git $CIRCLE_SHA1:master - curl -LO https://github.com/Scalingo/cli/releases/download/1.3.1/scalingo_1.3.1_linux_amd64.tar.gz - tar xvf scalingo_1.3.1_linux_amd64.tar.gz - scalingo_1.3.1_linux_amd64/scalingo -a example-app login --ssh - scalingo_1.3.1_linux_amd64/scalingo -a example-app run rake db:migrate