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

fixup! Add package caching for CI

parent 4be9b3c5
No related branches found
No related tags found
No related merge requests found
Pipeline #7346 passed
Pipeline: backend

#7347

    ...@@ -179,6 +179,9 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\ ...@@ -179,6 +179,9 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\
    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-repo=$CI_REGISTRY_IMAGE/{self.context.env_type()}_cache", 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: if self.context.commit_tag is not None:
    ...@@ -234,8 +237,7 @@ deploy-{self.target_image_name}: ...@@ -234,8 +237,7 @@ deploy-{self.target_image_name}:
    script: script:
    - {self._get_auth_echo()} - {self._get_auth_echo()}
    - mkdir /workdir - mkdir /workdir
    - echo "FROM $CI_REGISTRY_IMAGE/{self.image_full_name()} > /workdir/Dockerfile" - echo "FROM $CI_REGISTRY_IMAGE/{self.image_full_name()}:{self.context.commit_sha}" > /workdir/Dockerfile
    - echo {self.context.commit_sha}
    - >- - >-
    /kaniko/executor /kaniko/executor
    --context=dir:///workdir --context=dir:///workdir
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment