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
- First add an SSH key to Bitbucket Pipelines. This keys will authenticate the user who deploys on Scalingo. Documentation.
- Add a file named
bitbucket-pipelines.ymlat the root of your project containing:
pipelines: default: - step: name: Deploy to Scalingo deployment: production script: - echo "Deploying to production environment" - git push firstname.lastname@example.org:my-app.git HEAD
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
- Commit this new file and push it to Bitbucket.
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.