mirror of
https://git.fifo-f.eu/tex-projects/docker-images.git
synced 2025-04-19 13:08:04 +02:00
Update .gitlab-ci.yml file
This commit is contained in:
parent
d0998ad774
commit
e4227bde0a
1 changed files with 9 additions and 6 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue