Skip to content
Snippets Groups Projects
Commit 17b59031 authored by Simon Künzel's avatar Simon Künzel
Browse files

fixup! Add package caching for CI

parent ed91e8c1
No related branches found
No related tags found
No related merge requests found
Pipeline #7338 canceled
Pipeline: backend

#7339

    ...@@ -116,6 +116,7 @@ class ModuleBuildConfig: ...@@ -116,6 +116,7 @@ class ModuleBuildConfig:
    FROM python:3.13-slim AS base FROM python:3.13-slim AS base
    RUN mkdir -p /code RUN mkdir -p /code
    WORKDIR /code WORKDIR /code
    ENV PIP_CACHE_DIR=/tmp/pip-cache ENV PIP_CACHE_DIR=/tmp/pip-cache
    ...@@ -177,6 +178,8 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\ ...@@ -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"--destination=$CI_REGISTRY_IMAGE/{self.image_full_name()}:{self.context.commit_sha}",
    f"--build-arg=GIT_COMMIT_SHA={self.context.commit_sha}", f"--build-arg=GIT_COMMIT_SHA={self.context.commit_sha}",
    f"--cache=true", f"--cache=true",
    f"--cache-run-layers=true",
    f"--cache-copy-layers=true",
    ] ]
    if self.context.commit_tag is not None: if self.context.commit_tag is not None:
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment