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
This commit is contained in:
parent
40aeb7c313
commit
a35572a6e2
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@ build:
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
if [ ! -f $ARCHIVED_IMAGE ]; then
|
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
|
curl -sSfL https://raw.githubusercontent.com/overleaf/toolkit/master/lib/config-seed/version -o version.txt
|
||||||
OVERLEAF_VERSION=$(cat version.txt)
|
OVERLEAF_VERSION=$(cat version.txt)
|
||||||
docker pull sharelatex/sharelatex:latest
|
docker pull sharelatex/sharelatex:latest
|
||||||
|
@ -26,6 +27,7 @@ build:
|
||||||
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- $ARCHIVED_IMAGE
|
- $ARCHIVED_IMAGE
|
||||||
|
@ -46,6 +48,7 @@ push:
|
||||||
- docker load -i $ARCHIVED_IMAGE
|
- docker load -i $ARCHIVED_IMAGE
|
||||||
- docker push $IMAGE_NAME:$OVERLEAF_VERSION
|
- docker push $IMAGE_NAME:$OVERLEAF_VERSION
|
||||||
- docker push $IMAGE_NAME:latest
|
- docker push $IMAGE_NAME:latest
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- $ARCHIVED_IMAGE
|
- $ARCHIVED_IMAGE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue