Update .gitlab-ci.yml

This commit is contained in:
Lukas Heiligenbrunner 2020-11-09 10:44:26 +00:00
parent 40ad369705
commit c519f60347

View File

@ -5,8 +5,7 @@ stages:
image: docker:latest
tags:
- dind
services:
- name: docker:dind
entrypoint: ["env", "-u", "DOCKER_HOST"]
@ -19,18 +18,24 @@ variables:
build:
stage: build
tags:
- dind
script:
- cd static
- docker build --no-cache -t luki42/latex-full:latest .
upload:
stage: upload
tags:
- dind
needs: ["build"]
script:
- docker push luki42/latex-full:latest
cleanup:
stage: cleanup
tags:
- dind
needs: ["upload"]
script:
- docker system prune -a -f