dockerFullLatexEnvironment/.gitlab-ci.yml

42 lines
679 B
YAML

stages:
- build
- upload
- cleanup
image: docker:latest
services:
- name: docker:dind
entrypoint: ["env", "-u", "DOCKER_HOST"]
command: ["dockerd-entrypoint.sh"]
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
# See https://github.com/docker-library/docker/pull/166
DOCKER_TLS_CERTDIR: ""
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