Leveraging docker layer caching in Auto-DevOps.gitlab-ci.yml
Auto-DevOps.gitlab-ci.yml make a docker pull before making the docker build to leverage layer caching as the following page states : Keep in mind that any image that's used with the --cache-from argument must first be pulled (using docker pull) before it can be used as a cache source.
Adding the following line
docker pull $CI_APPLICATION_REPOSITORY:$CI_COMMIT_BEFORE_SHA || true
just before doing the
docker build should fix this