-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically push to dockerhub as part of CI pipeline #66
Comments
You can setup Autobuild on dockerhub aswell. See this |
Yes, can confirm that @glvr182 . It's really straightforward. Just Github login is required. |
Hey @jesseduffield what's your Docker Hub username? For readme badges purposes You can setup autobuilds here and then you can get a webhook link for nice badges of the Docker image size and version at https://microbadger.com/images/jesseduffield/lazydocker I already added a build hook for Docker Hub's automated build as well as a few Docker Hub markdown badges on the reworking-dockerfile branch. |
You may want to use Circle CI to build the Docker image and push it to Docker Hub as well. This is great as everything takes place in the same place and it will fail if there is an integration bug. However, I think that an automated build with Docker Hub is more trustworthy as it's hard for the user to find the origin of the Docker push (which should be Circle CI) to Docker Hub (a.k.a. malicious Docker images not corresponding to Github's repository source code) |
@qdm12 not sure if you saw my comment in your PR but we can use the dockerhub username of 'lazyteam' and the repo of 'lazydocker'. What are your thoughts on us using goreleaser to handle building and pushing the image? We currently use it for building the binaries, homebrew, and snapcraft. And it has support for docker as well: https://goreleaser.com/docker/ |
As you wish, the only thing is that any other party than Docker Hub would have to For example, Linuxserver push all their images from their CI but I'm not sure the user can actually verify this. So it could be a malicious/corrupted image they pushed manually from their desktop for example. On my side, I always have automated Docker Hub builds linked to Github for x86_64. I however push ARM images from an ARM device I have as there is no CI/Docker Hub solution to build efficiently for ARM devices... |
from your experience is it simple enough to hook everything up with the docker hub approach @qdm12 ? |
Yes, it's 15 key strokes and 5 mouse clicks, here 😸 But you should have both a CI and Docker Hub, which builds all Docker images only. |
You can set this up now by just clicking Save and it will get triggered on the next push or maybe next tag creation. |
Cool! It will pickup the new Dockerfile and build hooks when we merge the docker PR. I guess we can close the issue now. |
sounds good |
Is your feature request related to a problem? Please describe.
It would be cool if we built the lazydocker image and pushed to docker hub as part of the CI pipeline when we do a release
The text was updated successfully, but these errors were encountered: