Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Continuous deployments / deployment previews per Pull Request with Bitbucket


We would like to introduce continuous deployments / deployment previews to improve our workflow for reviewing/testing developed features.

The workflow we have in mind would be the following:

  • A developer creates a new PR in Bitbucket which triggers an action
  • A Docker image gets built for this repository and PR (we have multiple repositories with different requirements)
  • The built Docker image gets deployed to a server on a separate vhost (e.g. where it can get accessed for reviewing/testing the feature before merging the PR
  • Production DB gets cloned into this new environment (if possible with additional migration scripts)
  • Environment gets updated every time the PR gets updated
  • Environment gets deleted/cleaned up once the PR gets merged or declined
  • Everything should be fully automated


We searched for some already existing solutions, however we could not find one that matches all our requirements. Either they are only available for github, they don't have the possibility to provide docker images or they don't have a workflow for databases.

So before we start building a custom solution (probably with AWS EC2 and a few custom scripts between AWS and Bitbucket), we would like to know if someone has experience with this and we hope that some Atlassian customers already have something similar included in their workflow.

So our questions would be:

  • Does someone know a service which would meet our requirements out of the box? Maybe there are some less known services or undocumented features of other services..
  • If not, did you build a custom solution for this? Did you have any problems with it?
  • Do you have some other inputs for this workflow?


Thank you for your help!




Log in or Sign up to comment
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,872 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you