From 72cdaf6aadc16c42651722b8db71efc673da2b06 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Tue, 3 Sep 2019 10:57:14 +0300 Subject: .gitlab-ci: Don't pull images until they are needed We were pulling and tagging images locally ahead of time just in case the next build may need it (i.e. debian-minimal for the fully featured debian). Instead of doing that we can specify the registry in Dockerfile's FROM cluse, so the image is pulled only when we are need it. Signed-off-by: Arkadiusz Hiler Reviewed-by: Petri Latvala --- Dockerfile.build-debian | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Dockerfile.build-debian') diff --git a/Dockerfile.build-debian b/Dockerfile.build-debian index de2adca6..69f63157 100644 --- a/Dockerfile.build-debian +++ b/Dockerfile.build-debian @@ -1,5 +1,6 @@ ARG CI_COMMIT_SHA -FROM build-debian-minimal:commit-$CI_COMMIT_SHA +ARG CI_REGISTRY_IMAGE +FROM $CI_REGISTRY_IMAGE/build-debian-minimal:commit-$CI_COMMIT_SHA RUN apt-get update RUN apt-get install -y \ -- cgit v1.2.3