docker icon indicating copy to clipboard operation
docker copied to clipboard

Also publish to GitHub container registry

Open timja opened this issue 4 years ago • 6 comments

Any thoughts?

I've done an experiment here: https://github.com/timja/jenkins-ci.org-docker/pkgs/container/jenkins

see https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry

Steps taken:

  • Logged in with a github pat (see above doc)
  • Pushed image
  • Went to packages on my profile and linked it to this repo (on my fork)
  • Updated the package setting to be public instead of private (one off change per image, not per tag)

The main benefit I see is there's pull metrics per tag. It amazes me that docker hub does not provide this =/. I want to know if anyone actually uses e.g. centos or windows tags.

cc @dduportal @MarkEWaite @slide @olblak

timja avatar Jul 06 '21 08:07 timja

I wouldn't leave dockerhub because well it's still the default place to go but I don't see any objection to push images to ghcr as well. I am using it for updatecli from here and it's working great

olblak avatar Jul 06 '21 18:07 olblak

I also think we shouldn't leave dockerhub, people look there first for images. I think ALSO publishing to ghcr would be fine.

slide avatar Jul 06 '21 18:07 slide

I think publishing to GitHub container registry is a great idea in addition to Dockerhub.

MarkEWaite avatar Jul 08 '21 04:07 MarkEWaite

+1 on this: with the recent addition of docker buildx bake, it should be easy on the pipeline side.

@timja since I recently got warned by GitHub that I'm consuming too much space, could you check the limitations (size/API rate) on the GitHub that we would have if we do so?

dduportal avatar Aug 10 '21 15:08 dduportal

free for public packages, and doesn't appear to be any limits: https://docs.github.com/en/billing/managing-billing-for-github-packages/about-billing-for-github-packages#about-billing-for-github-packages

timja avatar Sep 01 '21 07:09 timja

I am not aware of any limits and I would definitely be in favor to publish on ghrc.io

olblak avatar Sep 01 '21 10:09 olblak