Update .gitlab-ci.yml

This commit is contained in:
Fifo F. 2024-06-28 16:44:07 +00:00
parent 40aeb7c313
commit a35572a6e2

View file

@ -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