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@ssh.osc-fr1.scalingo.com:my-app.git HEAD
clone:
  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