Set up automated builds
WarningDocker Hub Automated Builds is a deprecated feature. It will be fully retired on April 1, 2027. See the migration guide to move to a supported CI/CD workflow.
NoteAutomated builds require a Docker Pro, Team, or Business subscription.
Configure automated builds
You can configure repositories in Docker Hub so that they automatically build an image each time you push new code to your source provider. If you have automated tests configured, the new image is only pushed when the tests succeed.
In Docker Hub, go to My Hub > Repositories, and select a repository to view its details.
Select the Builds tab.
Select either GitHub or Bitbucket to connect where the image's source code is stored.
NoteYou may be redirected to the settings page to link the code repository service. Otherwise, if you are editing the build settings for an existing automated build, select Configure automated builds.
Select the source repository to build the Docker images from.
NoteYou might need to specify an organization or user from the source code provider. Once you select a user, source code repositories appear in the Select repository drop-down list.