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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.