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

fixup! Add package caching for CI

parent 4b07dece
Branches
No related tags found
No related merge requests found
Pipeline #7332 failed
Pipeline: backend

#7333

    ...@@ -174,7 +174,7 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\ ...@@ -174,7 +174,7 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\
    f"--context=git://git.fsmpi.rwth-aachen.de/videoag/backend.git#{self.context.commit_sha}", f"--context=git://git.fsmpi.rwth-aachen.de/videoag/backend.git#{self.context.commit_sha}",
    f"--dockerfile={str(self.output_dockerfile_path().relative_to(self.context.build_dir))}", f"--dockerfile={str(self.output_dockerfile_path().relative_to(self.context.build_dir))}",
    f"--git recurse-submodules=true", f"--git recurse-submodules=true",
    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",
    ] ]
    ...@@ -209,7 +209,7 @@ test-{self.target_image_name}: ...@@ -209,7 +209,7 @@ test-{self.target_image_name}:
    stage: build-and-test stage: build-and-test
    needs: [{self.ci_build_job_name()}] needs: [{self.ci_build_job_name()}]
    image: image:
    name: $CI_REGISTRY_IMAGE/{self.image_full_name()}#{self.context.commit_sha} name: $CI_REGISTRY_IMAGE/{self.image_full_name()}:{self.context.commit_sha}
    """ """
    res += " " + "\n ".join(self.ci_test_job_template.splitlines()) + "\n" res += " " + "\n ".join(self.ci_test_job_template.splitlines()) + "\n"
    return res return res
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment