Deploy to Scalingo from Bitbucket

To setup Continuous Deployment from Bitbucket to Scalingo, please follow the following steps. You can read more about Deployment Pipelines on the Bitbucket documentation.

Setup a Deployment Pipeline

On Bitbucket

  1. First add an SSH key to Bitbucket Pipelines. This keys will authenticate the user who deploys on Scalingo. Documentation.
  2. Add a file named bitbucket-pipelines.yml at the root of your project containing:
pipelines:
  default:
    - step:
        name: Deploy to Scalingo
        deployment: production
        script:
          - echo "Deploying to production environment"
          - git push git@scalingo.com/my-app.git HEAD
  1. Commit this new file and push it to Bitbucket.

On Scalingo

To deploy to Scalingo from Bitbucket, you’ll have to add the public key generated for Bitbucket Pipelines to the SSH Keys page on Scalingo dashboard.


mode_edit Suggest edits