From 78f6f7884e6942e71baaacc07c5f5bdac6a464d2 Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov Date: Sun, 10 Jan 2021 17:50:57 +0300 Subject: [PATCH] docker build --network host --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d8371e..95b4aa1 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" ########################################################################################################## -- GitLab