From c274c7b206aaa012016a3b501af920bc2a55a937 Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov Date: Mon, 13 Apr 2020 10:27:47 +0300 Subject: [PATCH] --cache-from "${CI_REGISTRY_IMAGE}:latest" --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ec79a51..39aeadb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,7 +33,7 @@ build: GIT_DEPTH: 1 DIRECTORY: '.' script: - - docker build -t "${CI_REGISTRY_IMAGE}:temp-${CI_PIPELINE_IID}" -f "./${DIRECTORY}/Dockerfile" "./${DIRECTORY}" + - docker build --cache-from "${CI_REGISTRY_IMAGE}:latest" -t "${CI_REGISTRY_IMAGE}:temp-${CI_PIPELINE_IID}" -f "./${DIRECTORY}/Dockerfile" "./${DIRECTORY}" - docker push "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ########################################################################################################## -- GitLab