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 . - docker login -p $DockerPWD -u luki42 - docker push luki42/latex-full:latest