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 | |
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')
-rw-r--r-- | Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ ARG CI_COMMIT_SHA -FROM build-fedora:commit-$CI_COMMIT_SHA +ARG CI_REGISTRY_IMAGE +FROM $CI_REGISTRY_IMAGE/build-fedora:commit-$CI_COMMIT_SHA COPY opt-igt /opt/igt COPY .gitlab-ci/docker-help.sh /usr/local/bin/docker-help.sh |