Update .gitlab-ci.yml file

This commit is contained in:
Fifo F. 2024-06-10 18:56:53 +00:00
parent d0998ad774
commit e4227bde0a

View file

@ -15,14 +15,16 @@ build:
services:
- name: docker:24.0.5-dind
script:
- docker pull sharelatex/sharelatex:latest
- docker run --name temp --entrypoint /bin/bash sharelatex/sharelatex:latest -c "tlmgr option repository $TEXLIVE_REPO && tlmgr update --self --all && tlmgr install scheme-full"
- docker commit temp $IMAGE_NAME
- docker save -o $ARCHIVED_IMAGE sharelatex:with-texlive-full
- if [ ! -f $ARCHIVED_IMAGE ]; then
docker pull sharelatex/sharelatex:latest
docker run --name temp --entrypoint /bin/bash sharelatex/sharelatex:latest -c "tlmgr option repository $TEXLIVE_REPO && tlmgr update --self --all && tlmgr install scheme-full"
docker commit temp $IMAGE_NAME
docker save -o $ARCHIVED_IMAGE sharelatex:with-texlive-full
fi
artifacts:
paths:
- $ARCHIVED_IMAGE
expire_in: 30 days
push:
stage: push
@ -39,4 +41,5 @@ push:
- docker push $IMAGE_NAME
artifacts:
paths:
- $ARCHIVED_IMAGE
- $ARCHIVED_IMAGE
expire_in: 30 days