Page MenuHomeDevCentral

Trigger Docker Hub build when source repository is updated
Closed, ResolvedPublic

Description

We maintain Docker images for Tommy, Auth Grove and Notifications center.

Three events should trigger a new build:

Parent image is updatedAlready handled by Docker Hub (repository links)
Image repository is updatedAlready handled by Docker Hub (automated builds)
App repository is updated*Not currently handled**

There is so a need to trigger a new build when code is committed to the application repository.

That requires a map between source application repository and target Docker Hub image.

To trigger a build, documentation gives the following command to trigger a build for all tags/branches:

curl -H "Content-Type: application/json" --data '{"build": true}' -X POST https://registry.hub.docker.com/u/{vendor}/{image}/trigger/{token}/

Event Timeline

This comment was removed by dereckson.