Is my Docker Base Image up to date?
Problem Docker image is out of date because of base image updates.
bash script to trigger a new build.
Solution CI/CD pipeline with GitHub Action.
GitHub Action source code
Solution source code
All our docker images were facing the same issue.
Base image updates were making our own out of date.
For security reasons,
:latest is my default tag.
By automating new builds frequently, the problem would be solved.
However, running CI/CD pipelines are not free.
This solution seems overkill as we only want to trigger builds if needed.
Docker Hub has an Automated Build feature solving this internally.
How about our own registries?
We do not want to host our images at Docker Hub nor to rely on third-party services.