Update .gitlab-ci.yml
This commit is contained in:
parent
40ad369705
commit
c519f60347
@ -5,8 +5,7 @@ stages:
|
|||||||
|
|
||||||
|
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
tags:
|
|
||||||
- dind
|
|
||||||
services:
|
services:
|
||||||
- name: docker:dind
|
- name: docker:dind
|
||||||
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
||||||
@ -19,18 +18,24 @@ variables:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
tags:
|
||||||
|
- dind
|
||||||
script:
|
script:
|
||||||
- cd static
|
- cd static
|
||||||
- docker build --no-cache -t luki42/latex-full:latest .
|
- docker build --no-cache -t luki42/latex-full:latest .
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
stage: upload
|
stage: upload
|
||||||
|
tags:
|
||||||
|
- dind
|
||||||
needs: ["build"]
|
needs: ["build"]
|
||||||
script:
|
script:
|
||||||
- docker push luki42/latex-full:latest
|
- docker push luki42/latex-full:latest
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
stage: cleanup
|
stage: cleanup
|
||||||
|
tags:
|
||||||
|
- dind
|
||||||
needs: ["upload"]
|
needs: ["upload"]
|
||||||
script:
|
script:
|
||||||
- docker system prune -a -f
|
- docker system prune -a -f
|
||||||
|
Loading…
Reference in New Issue
Block a user