stages: - build - upload - cleanup image: docker:latest tags: - dind 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 script: - cd static - docker build --no-cache -t luki42/latex-full:latest . upload: stage: upload needs: ["build"] script: - docker push luki42/latex-full:latest cleanup: stage: cleanup needs: ["upload"] script: - docker system prune -a -f