qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Fabiano Rosas
Subject: [RFC PATCH 1/1] ci: Attempt to pull container images before building
Date: Thu, 23 Feb 2023 11:21:54 -0300

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 --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
-- 
2.35.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]