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:
    - step:
        name: Deploy to Scalingo
        deployment: production
          - echo "Deploying to production environment"
          - git push HEAD
  depth: full

Note that the remote URL depends on the region of your application. You can get it using our CLI with:

scalingo --app my-app git-show
  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 the Scalingo Dashboard.

Suggest edits

Deploy to Scalingo from Bitbucket

©2024 Scalingo