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

fixup! Add package caching for CI

parent 9e7fba55
No related branches found
No related tags found
No related merge requests found
Pipeline #7295 failed
Pipeline: backend

#7296

    ARG PIP_CACHE_DIR
    # Can be "development" or "production"
    ARG ENV_TYPE
    ARG GIT_COMMIT_SHA
    ......
    ARG PIP_CACHE_DIR
    FROM python:3.12
    WORKDIR /code
    ......
    ......@@ -92,6 +92,7 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\
    f"--destination=$CI_REGISTRY_IMAGE/{self.versioned_full_name()}",
    f"--build-arg=GIT_COMMIT_SHA={self.context.commit_sha}",
    f"--build-arg=ENV_TYPE={self.context.env_type()}",
    f"--build-arg=PIP_CACHE_DIR=$CI_PROJECT_DIR/.cache/pip",
    f"--cache=true",
    ]
    ......@@ -106,6 +107,9 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\
    image:
    name: gcr.io/kaniko-project/executor:v1.23.2-debug
    entrypoint: [""]
    cache:
    paths:
    - .cache/pip
    script:
    - {self._get_auth_echo()}
    - echo {self.context.commit_sha}
    ......@@ -165,6 +169,7 @@ run-api-tests:
    - name: postgres:17
    alias: ci-database
    variables:
    POSTGRES_DB: videoagtest
    POSTGRES_USER: videoagtest
    POSTGRES_PASSWORD: LetMeTest...
    ......
    ARG PIP_CACHE_DIR
    # Can be "development" or "production"
    ARG ENV_TYPE
    ARG GIT_COMMIT_SHA
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment