From 92462d8986b6edba013d2e8d10f569d6e4b421fe Mon Sep 17 00:00:00 2001 From: LoveIsGrief Date: Mon, 28 Dec 2020 18:39:44 +0100 Subject: [PATCH] Name registry in dind and make sure it's running --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c6416b..047f45b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,14 +41,16 @@ before_script: start_registry: stage: docker_setup script: - - docker run -d -p 5000:5000 registry:2 + - docker run -d -p 5000:5000 --name registry registry:2 + - docker ps -a # Make sure we can build a docker image # It's pushed to the pipeline-local registry which acts as a cache build_docker: stage: docker_test script: - # Make sure we can connect to the registry service + - docker ps -a + - docker ps -a | grep registry - docker pull $CI_REGISTRY_IMAGE:latest || true - docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_LOCAL_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA --tag $CI_LOCAL_REGISTRY_IMAGE:latest . - docker push $CI_LOCAL_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA