So we have a git repository that has a number of docker images (multiple Dockerfile
s each of which used for a different type of application build in our Jenkins
)
Now if one makes a change in one Dockerfile
the Jenkins job will build and pushe all other Dockerfile
s in the repository. I was wondering, if we were able to calcualte the digest id (SHA256) beforehand and compare that with our docker registry, if there is one already we can skip docker build
and docker push
.
I couldn't find any command in Docker
user guide but here with this post I also wanted to know if we can raise a ticket for this new feature if this approach works and if there is no way of calculating this identifier
Any other suggestion is greatly appreciated