diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39aeadb8eae5d426bdb6feae24fc3bb60089cf56..993fa6ef3a39107f32f85b6dc7b43015cc1d3ed1 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"