mirror of
https://git.fifo-f.eu/tex-projects/docker-images.git
synced 2025-04-19 13:08:04 +02:00
Revert "Try to add caching to reduce pipeline run times"
This reverts commit f0be085526
This commit is contained in:
parent
8519e64aac
commit
e54e11c505
1 changed files with 4 additions and 13 deletions
|
@ -2,11 +2,6 @@ stages:
|
||||||
- build
|
- build
|
||||||
- push
|
- push
|
||||||
|
|
||||||
cache:
|
|
||||||
key: texlive-cache
|
|
||||||
paths:
|
|
||||||
- /usr/local/texlive
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
IMAGE_NAME: ${CI_REGISTRY}/${CI_PROJECT_PATH}/sharelatex-with-texlive-full
|
IMAGE_NAME: ${CI_REGISTRY}/${CI_PROJECT_PATH}/sharelatex-with-texlive-full
|
||||||
ARCHIVED_IMAGE: sharelatex_with_texlive_full.tar
|
ARCHIVED_IMAGE: sharelatex_with_texlive_full.tar
|
||||||
|
@ -29,19 +24,15 @@ build:
|
||||||
echo "Image version: $OVERLEAF_VERSION"
|
echo "Image version: $OVERLEAF_VERSION"
|
||||||
docker pull sharelatex/sharelatex:latest
|
docker pull sharelatex/sharelatex:latest
|
||||||
docker run --name temp --entrypoint /bin/bash sharelatex/sharelatex:latest -c "\
|
docker run --name temp --entrypoint /bin/bash sharelatex/sharelatex:latest -c "\
|
||||||
if [ ! -d /usr/local/texlive ]; then \
|
tlmgr option repository $TEXLIVE_REPO && \
|
||||||
tlmgr option repository $TEXLIVE_REPO && \
|
tlmgr update --self --all && \
|
||||||
tlmgr install scheme-full && \
|
tlmgr install scheme-full && \
|
||||||
tlmgr path add; \
|
tlmgr path add && \
|
||||||
else \
|
|
||||||
tlmgr update --self --all; \
|
|
||||||
fi && \
|
|
||||||
apt update && apt install -y inkscape lilypond python3-pygments && \
|
apt update && apt install -y inkscape lilypond python3-pygments && \
|
||||||
echo shell_escape = t >> /usr/local/texlive/2024/texmf.cnf"
|
echo shell_escape = t >> /usr/local/texlive/2024/texmf.cnf"
|
||||||
docker commit --change "ENTRYPOINT $IMAGE_ENTRYPOINT" temp $IMAGE_NAME:$OVERLEAF_VERSION
|
docker commit --change "ENTRYPOINT $IMAGE_ENTRYPOINT" temp $IMAGE_NAME:$OVERLEAF_VERSION
|
||||||
docker tag $IMAGE_NAME:$OVERLEAF_VERSION $IMAGE_NAME:latest
|
docker tag $IMAGE_NAME:$OVERLEAF_VERSION $IMAGE_NAME:latest
|
||||||
docker save -o $ARCHIVED_IMAGE $IMAGE_NAME:$OVERLEAF_VERSION $IMAGE_NAME:latest
|
docker save -o $ARCHIVED_IMAGE $IMAGE_NAME:$OVERLEAF_VERSION $IMAGE_NAME:latest
|
||||||
docker system prune -f
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue