From 17b59031b990d49779b6ed062621870e40979960 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20K=C3=BCnzel?= <simonk@fsmpi.rwth-aachen.de>
Date: Sat, 1 Mar 2025 22:25:37 +0100
Subject: [PATCH] fixup! Add package caching for CI

---
 build_pipeline_generator.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/build_pipeline_generator.py b/build_pipeline_generator.py
index 3478cfc..96271e2 100644
--- a/build_pipeline_generator.py
+++ b/build_pipeline_generator.py
@@ -116,6 +116,7 @@ class ModuleBuildConfig:
 FROM python:3.13-slim AS base
 
 RUN mkdir -p /code
+
 WORKDIR /code
 
 ENV PIP_CACHE_DIR=/tmp/pip-cache
@@ -177,6 +178,8 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\
             f"--destination=$CI_REGISTRY_IMAGE/{self.image_full_name()}:{self.context.commit_sha}",
             f"--build-arg=GIT_COMMIT_SHA={self.context.commit_sha}",
             f"--cache=true",
+            f"--cache-run-layers=true",
+            f"--cache-copy-layers=true",
         ]
         
         if self.context.commit_tag is not None:
-- 
GitLab