From 6403520111edcbd74711d70e55be604db80a88f8 Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov Date: Mon, 13 Apr 2020 10:57:39 +0300 Subject: [PATCH] docker pull "${CI_REGISTRY_IMAGE}:latest" || true --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39aeadb..993fa6e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,6 +33,7 @@ build: GIT_DEPTH: 1 DIRECTORY: '.' script: + - docker pull "${CI_REGISTRY_IMAGE}:latest" || true - 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