diff options
author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2019-09-03 10:57:14 +0300 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2019-09-03 18:27:01 +0300 |
commit | 72cdaf6aadc16c42651722b8db71efc673da2b06 (patch) | |
tree | 81678b812bdff804acc286c8a7a15235ccbe44be /Dockerfile.build-debian | |
parent | 3bf2fc3dfbbbd5a6f5ff0fc8b417ee25e0f338b9 (diff) |
.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 <arkadiusz.hiler@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'Dockerfile.build-debian')
-rw-r--r-- | Dockerfile.build-debian | 3 |
1 files changed, 2 insertions, 1 deletions
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 \ |