From e54e11c5053d57e2b29569bd8e12fd8c9d79dec8 Mon Sep 17 00:00:00 2001 From: "Fifo F." Date: Sat, 7 Sep 2024 10:23:01 +0000 Subject: [PATCH] Revert "Try to add caching to reduce pipeline run times" This reverts commit f0be0855269f869f21b2795ef696fb895e781f60 --- .gitlab-ci.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 84a5140..ff4ccb5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,11 +2,6 @@ stages: - build - push -cache: - key: texlive-cache - paths: - - /usr/local/texlive - variables: IMAGE_NAME: ${CI_REGISTRY}/${CI_PROJECT_PATH}/sharelatex-with-texlive-full ARCHIVED_IMAGE: sharelatex_with_texlive_full.tar @@ -29,19 +24,15 @@ build: echo "Image version: $OVERLEAF_VERSION" docker pull sharelatex/sharelatex:latest docker run --name temp --entrypoint /bin/bash sharelatex/sharelatex:latest -c "\ - if [ ! -d /usr/local/texlive ]; then \ - tlmgr option repository $TEXLIVE_REPO && \ - tlmgr install scheme-full && \ - tlmgr path add; \ - else \ - tlmgr update --self --all; \ - fi && \ + tlmgr option repository $TEXLIVE_REPO && \ + tlmgr update --self --all && \ + tlmgr install scheme-full && \ + tlmgr path add && \ apt update && apt install -y inkscape lilypond python3-pygments && \ echo shell_escape = t >> /usr/local/texlive/2024/texmf.cnf" docker commit --change "ENTRYPOINT $IMAGE_ENTRYPOINT" temp $IMAGE_NAME:$OVERLEAF_VERSION docker tag $IMAGE_NAME:$OVERLEAF_VERSION $IMAGE_NAME:latest docker save -o $ARCHIVED_IMAGE $IMAGE_NAME:$OVERLEAF_VERSION $IMAGE_NAME:latest - docker system prune -f fi artifacts: