From fa50207da10f12a4657b278d6c4b1aed839c22e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20K=C3=BCnzel?= <simonk@fsmpi.rwth-aachen.de>
Date: Sun, 2 Mar 2025 01:41:36 +0100
Subject: [PATCH] fixup! Add package caching for CI

---
 build_pipeline_generator.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/build_pipeline_generator.py b/build_pipeline_generator.py
index 41a4d48..9bc33b5 100644
--- a/build_pipeline_generator.py
+++ b/build_pipeline_generator.py
@@ -179,6 +179,9 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\
             f"--build-arg=GIT_COMMIT_SHA={self.context.commit_sha}",
             f"--cache=true",
             f"--cache-repo=$CI_REGISTRY_IMAGE/{self.context.env_type()}_cache",
+            f"--cache-copy-layers=true",
+            f"--cache-run-layers=true",
+            f"--verbosity=trace",
         ]
         
         if self.context.commit_tag is not None:
@@ -234,8 +237,7 @@ deploy-{self.target_image_name}:
     script:
         - {self._get_auth_echo()}
         - mkdir /workdir
-        - echo "FROM $CI_REGISTRY_IMAGE/{self.image_full_name()} > /workdir/Dockerfile"
-        - echo {self.context.commit_sha}
+        - echo "FROM $CI_REGISTRY_IMAGE/{self.image_full_name()}:{self.context.commit_sha}" > /workdir/Dockerfile
         - >-
             /kaniko/executor
             --context=dir:///workdir
-- 
GitLab