mirror of
https://git.fifo-f.eu/tex-projects/docker-images.git
synced 2025-04-18 12:48:19 +02:00
Update .gitlab-ci.yml
This commit is contained in:
parent
40aeb7c313
commit
a35572a6e2
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@ build:
|
|||
script:
|
||||
- |
|
||||
if [ ! -f $ARCHIVED_IMAGE ]; then
|
||||
apk add --no-cache curl
|
||||
curl -sSfL https://raw.githubusercontent.com/overleaf/toolkit/master/lib/config-seed/version -o version.txt
|
||||
OVERLEAF_VERSION=$(cat version.txt)
|
||||
docker pull sharelatex/sharelatex:latest
|
||||
|
@ -26,6 +27,7 @@ build:
|
|||
docker tag $IMAGE_NAME:$OVERLEAF_VERSION $IMAGE_NAME:latest
|
||||
docker save -o $ARCHIVED_IMAGE $IMAGE_NAME:$OVERLEAF_VERSION $IMAGE_NAME:latest
|
||||
fi
|
||||
|
||||
artifacts:
|
||||
paths:
|
||||
- $ARCHIVED_IMAGE
|
||||
|
@ -46,6 +48,7 @@ push:
|
|||
- docker load -i $ARCHIVED_IMAGE
|
||||
- docker push $IMAGE_NAME:$OVERLEAF_VERSION
|
||||
- docker push $IMAGE_NAME:latest
|
||||
|
||||
artifacts:
|
||||
paths:
|
||||
- $ARCHIVED_IMAGE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue