How to push to DockerHub
Yooooomi opened this issue · 2 comments
Yooooomi commented
Hello, I'm using your action to build my image to several architecure. I would like to know how can I then push the built image to dockerhub ?
Thank you
crazy-max commented
Hi @Yooooomi,
It depends on which flags you use when you build the image with buildx. You can control whether or not the image will be pushed into a registry with the --output
flag.
A concrete example can be found on the repository crazy-max/diun. And to be more specific, it's about this job.
Yooooomi commented
Yeah I managed to resolve it by docker login
'ing just after the buildx setup using the secrets of my repo as docker credentials and using the --push
flag
Thanks for your answer