Github Packages is an integrated feature, which can link a repository to a set of Docker images and a large variety of other formats.
See Publishing to Github Packages for more information.
You can choose if the image is public or private, see Access control for more information.
DockerHub¶
There are Github workflows for publishing to DockerHub.