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

How can I use bitbucket deployments for Heroku Container stack projects?

Ted Stresen-Reuter September 18, 2023

I've got a project hosted on Heroku. It uses the Container stack (a dockerized solution that, when pushed to Heroku, is built and deployed).

How can a trigger a build, test, and push to Heroku from bitbucket, or should I be doing the testing on Heroku as part of the deploy there?

TIA

Ted Stresen-Reuter

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 19, 2023

Hi Ted,

How can a trigger a build, test, and push to Heroku from bitbucket, or should I be doing the testing on Heroku as part of the deploy there?

That depends on the ways that Heroku allows you to trigger these. Does it offer a CLI or a REST API? Or something else?

In case of a CLI or REST API, you could do that from Bitbucket Pipelines by adding the necessary command or REST API call in the script of your bitbucket-pipelines.yml file. Pipelines builds run in Docker containers, so in case you need to use a CLI, the CLI needs to be installed in the Docker image that you specify as a build container in your bitbucket-pipelines.yml file (or you could install it during the build by adding the necessary commands in the bitbucket-pipelines.yml).

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events