From 50db954885e2f94fcdfe4bc064c17841d4cbdaef Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov Date: Mon, 13 Apr 2020 12:53:40 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82=D1=8B:=20docker=20?= =?UTF-8?q?pull=20"${CI=5FREGISTRY=5FIMAGE}:latest"=20||=20true?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 529fe95..198703c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,6 +47,7 @@ test: GIT_STRATEGY: "none" GIT_DEPTH: 0 script: + - docker pull "${CI_REGISTRY_IMAGE}:latest" || true - docker run --rm "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible --version - docker run --rm "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible -m ping localhost - docker run --rm "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible-lint --version -- GitLab From fd44c5be9d9ebd112a9d0883bd7a6c9a2e74af64 Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov Date: Fri, 17 Apr 2020 15:43:18 +0300 Subject: [PATCH 2/2] docker pull "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 198703c..40619c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,7 +47,7 @@ test: GIT_STRATEGY: "none" GIT_DEPTH: 0 script: - - docker pull "${CI_REGISTRY_IMAGE}:latest" || true + - docker pull "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" - docker run --rm "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible --version - docker run --rm "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible -m ping localhost - docker run --rm "${CI_REGISTRY_IMAGE}:temp-$CI_PIPELINE_IID" ansible-lint --version -- GitLab