Trigger action on new image push to Docker hub

Hi,

I have several known images that I use as a base to create my own images with added tools. In short, I pull an image as base, install several ubuntu packages that I will need and that’s about it.

Until now, I am building these images locally, but I would like to setup a github action that, whenever a new image with tag ‘latest’ is uploaded to docker hub, it triggers the build of my image and publish to my Docker hub.

Any tips on how to accomplish this? I believe a cron job would be the best, that would run every 6hours to check for new images.

Thanks

You have to create a workflow, like you said, that ran every few hours and checked for a new image. If it didn’t find one, then skip the rest of the steps in the job. If it did find one, then continue executing the rest of the steps.