For each branch or tag, enable or disable the Autobuild toggle.
Only branches or tags with autobuild enabled are built, tested, and have the resulting image pushed to the repository. Branches with autobuild disabled are built for test purposes (if enabled at the repository level), but the built Docker image is not pushed to the repository.
However, when Autobuild toggle is disabled and Trigger is clicked, built images are successfully pushed into the image repository.
I hope it is a documentation issue and not Docker Hub behavior issue because being able to push manually built images is very important for building images to run on build agents, such as Azure DevOps self-hosted agents. Such images only contain build dependencies and not the application source code and do not need to be built with every source commit.
I think the docs confuse Autobuild and Autotest. The latter is triggered on a pull request and indeed creates an image that runs, but isn't pushed into the image repository.
We are clearing up our old issues and your ticket has been open for 6 months with no activity. Remove stale label or comment or this will be closed in 15 days.
Problem description
The docs say:
, on this page:
https://docs.docker.com/docker-hub/builds/
However, when
Autobuild
toggle is disabled andTrigger
is clicked, built images are successfully pushed into the image repository.I hope it is a documentation issue and not Docker Hub behavior issue because being able to push manually built images is very important for building images to run on build agents, such as Azure DevOps self-hosted agents. Such images only contain build dependencies and not the application source code and do not need to be built with every source commit.
I think the docs confuse
Autobuild
andAutotest
. The latter is triggered on a pull request and indeed creates an image that runs, but isn't pushed into the image repository.