From be3d37159fcccb0737d9568726c3e4808a642ff0 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Mon, 5 Feb 2024 10:38:34 +0100 Subject: [PATCH] Enable some caching in CI build steps --- ci-scripts/cls_containerize.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci-scripts/cls_containerize.py b/ci-scripts/cls_containerize.py index 6c47787250..d5de5b70c5 100644 --- a/ci-scripts/cls_containerize.py +++ b/ci-scripts/cls_containerize.py @@ -357,11 +357,11 @@ class Containerize(): if self.host == 'Ubuntu': self.cli = 'docker' self.dockerfileprefix = '.ubuntu20' - self.cliBuildOptions = '--no-cache' + self.cliBuildOptions = '' elif self.host == 'Red Hat': self.cli = 'sudo podman' self.dockerfileprefix = '.rhel9' - self.cliBuildOptions = '--no-cache --disable-compression' + self.cliBuildOptions = '--disable-compression' # we always build the ran-build image with all targets # Creating a tupple with the imageName, the DockerFile prefix pattern, targetName and sanitized option @@ -509,7 +509,7 @@ class Containerize(): cmd.run(f"{self.cli} volume prune --force") # Remove any cached artifacts: we don't use the cache for now, prevent # out of diskspace problem - cmd.run(f"{self.cli} buildx prune --force") + cmd.run(f"{self.cli} buildx prune --filter=until=6h --force") # create a zip with all logs build_log_name = f'build_log_{self.testCase_id}' @@ -570,7 +570,7 @@ class Containerize(): sys.exit(1) self.cli = 'docker' - self.cliBuildOptions = '--no-cache' + self.cliBuildOptions = '' # Workaround for some servers, we need to erase completely the workspace if self.forcedWorkspaceCleanup: