Reputation: 380
I am on docker hub, how can I trigger bitbucket pipeline once images are built successfully?
I want them to run in order:
Upvotes: 1
Views: 6194
Reputation: 2793
You can send a request when your images finish building on Docker Hub via Docker Hub Webhooks.
You can use webhooks to cause an action in another service in response to a push event in the repository. Webhooks are POST requests sent to a URL you define in Docker Hub.
You can trigger a bitbucket pipeline using a POST request via the https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines/
URL.
You can check the documentation for more info.
Upvotes: 6