Add variable to disable docker build cache
Currently, to update an upstream dependency (for exemple when iterating on internal code, or applying upstream security patches, ...) you need to change the actual text content of your Dockerfile, which can get tedious.
This is due to setting --cache-from
in the docker build
instruction, which will use a previously built image as reference.
This MR adds an escape hatch, setting $DISABLE_DOCKER_BUILD_CACHE
to any value in your pipeline.