diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d8371ebcd9ab64c79da3f0ce1974bdae6442e30..95b4aa1e233e888cd90fc28c95b0502f906982e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,7 +48,7 @@ build: script: - docker pull "${CI_REGISTRY_IMAGE}:latest" || true - echo "Runtime dependencies - [${DEPENDENCIES_RUNTIME}]" - - docker build --cache-from "${CI_REGISTRY_IMAGE}:latest" -t "${CI_REGISTRY_IMAGE}:temp-${CI_PIPELINE_IID}" -f ./Dockerfile --build-arg DEPENDENCIES_RUNTIME="${DEPENDENCIES_RUNTIME}" . + - docker build --network host --cache-from "${CI_REGISTRY_IMAGE}:latest" -t "${CI_REGISTRY_IMAGE}:temp-${CI_PIPELINE_IID}" -f ./Dockerfile --build-arg DEPENDENCIES_RUNTIME="${DEPENDENCIES_RUNTIME}" . - docker push "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ##########################################################################################################