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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.