Leveraging docker layer caching in Auto-DevOps.gitlab-ci.yml
Summary
Shouldn't the 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.
Possible fixes
Adding the following line
docker pull $CI_APPLICATION_REPOSITORY:$CI_COMMIT_BEFORE_SHA || true
just before doing the docker build should fix this