docker / hub-feedback

Feedback and bug reports for the Docker Hub
https://hub.docker.com
232 stars 40 forks source link

Docker Hub build behavior does not match the description in the docs for pushing images #2111

Closed gh-andre closed 2 years ago

gh-andre commented 3 years ago

Problem description

The docs say:

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.

, on this page:

https://docs.docker.com/docker-hub/builds/

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.

github-actions[bot] commented 2 years ago

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.