dockerFullLatexEnvironment/.gitlab-ci.yml

37 lines
604 B
YAML
Raw Normal View History

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-04-19 21:42:56 +00:00
build:
stage: build
2020-04-19 19:32:06 +00:00
script:
2020-04-20 18:00:03 +00:00
- cd latest
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-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-04-22 22:07:35 +00:00
needs: ["upload"]
2020-04-22 22:04:23 +00:00
script:
2020-04-22 22:06:03 +00:00
- docker system prune -f
2020-04-22 22:02:49 +00:00
2020-04-22 21:31:48 +00:00
build_full:
stage: build
script:
- cd static
- docker build --no-cache -t luki42/latex-full:static .
when: manual
2020-04-23 08:08:39 +00:00
allow_failure: true
2020-04-22 21:40:46 +00:00
upload_full:
stage: upload
script:
2020-04-23 08:08:39 +00:00
- docker push luki42/latex-full:stati
when: manual
allow_failure: true