focus zheng
focus zheng

Reputation: 380

execute bitbucket pipeline webhook from remote

I am on docker hub, how can I trigger bitbucket pipeline once images are built successfully?
I want them to run in order:

  1. build images
  2. trigger bitbucket pipeline

Upvotes: 1

Views: 6194

Answers (1)

Robbe
Robbe

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

Related Questions