diff mbox series

[RFC,1/1] ci: Attempt to pull container images before building

Message ID 20230223142154.31975-2-farosas@suse.de
State New
Headers show
Series ci: Speed up container stage | expand

Commit Message

Fabiano Rosas Feb. 23, 2023, 2:21 p.m. UTC
We currently build and push container images at every pipeline
run. Since the main objective of the CI is testing QEMU, we don't need
to build the containers at every single run, we could pull the images
that were built in previous runs.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
 .gitlab-ci.d/container-template.yml | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/.gitlab-ci.d/container-template.yml b/.gitlab-ci.d/container-template.yml
index c434b9c8f3..0c7f744384 100644
--- a/.gitlab-ci.d/container-template.yml
+++ b/.gitlab-ci.d/container-template.yml
@@ -13,6 +13,7 @@ 
   script:
     - echo "TAG:$TAG"
     - echo "COMMON_TAG:$COMMON_TAG"
+    - docker pull "$TAG" && exit || true
     - ./tests/docker/docker.py --engine docker build
           -t "qemu/$NAME" -f "tests/docker/dockerfiles/$NAME.docker"
           -r $CI_REGISTRY/qemu-project/qemu