2020-04-22 21:31:48 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- upload
|
2020-04-22 21:59:01 +00:00
|
|
|
- cleanup
|
2020-04-22 21:31:48 +00:00
|
|
|
|
2020-11-09 10:39:21 +00:00
|
|
|
|
|
|
|
image: docker:latest
|
2020-11-09 10:44:26 +00:00
|
|
|
|
2020-11-09 10:39:21 +00:00
|
|
|
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: ""
|
|
|
|
|
2020-04-19 21:42:56 +00:00
|
|
|
build:
|
|
|
|
stage: build
|
2020-11-09 10:44:26 +00:00
|
|
|
tags:
|
|
|
|
- dind
|
2020-04-19 19:32:06 +00:00
|
|
|
script:
|
2020-05-07 19:13:51 +00:00
|
|
|
- cd static
|
2020-04-21 19:06:25 +00:00
|
|
|
- docker build --no-cache -t luki42/latex-full:latest .
|
2020-04-19 19:32:06 +00:00
|
|
|
|
2020-04-19 21:42:56 +00:00
|
|
|
upload:
|
2020-04-22 21:31:48 +00:00
|
|
|
stage: upload
|
2020-11-09 10:44:26 +00:00
|
|
|
tags:
|
|
|
|
- dind
|
2020-04-22 21:40:46 +00:00
|
|
|
needs: ["build"]
|
2020-04-19 19:32:06 +00:00
|
|
|
script:
|
2020-04-20 18:00:03 +00:00
|
|
|
- docker push luki42/latex-full:latest
|
2020-04-22 21:31:48 +00:00
|
|
|
|
2020-04-22 22:04:23 +00:00
|
|
|
cleanup:
|
2020-04-22 22:02:49 +00:00
|
|
|
stage: cleanup
|
2020-11-09 10:44:26 +00:00
|
|
|
tags:
|
|
|
|
- dind
|
2020-04-22 22:07:35 +00:00
|
|
|
needs: ["upload"]
|
2020-04-22 22:04:23 +00:00
|
|
|
script:
|
2020-08-04 10:54:04 +00:00
|
|
|
- docker system prune -a -f
|