From 2bdb78e11d3b7e7e018847e6e532b1022c9458e8 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Thu, 3 Oct 2019 17:49:46 +0000 Subject: [PATCH] Create a docker file for building the documentation --- .gitlab-ci.yml | 10 ++++++++++ Dockerfile.documentation | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 Dockerfile.documentation diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1b08ce0..98ec379 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,3 +39,13 @@ build-fedora: - docker push openlp/fedora:latest only: - master@openlp/runners + +build-documentation: + stage: build + script: + - docker pull openlp/documentation || true + - docker build --cache-from openlp/documentation --tag openlp/documentation:$CI_COMMIT_SHA --tag openlp/documentation:latest -f Dockerfile.documentation . + - docker push openlp/documentation:$CI_COMMIT_SHA + - docker push openlp/documentation:latest + only: + - master@openlp/runners diff --git a/Dockerfile.documentation b/Dockerfile.documentation new file mode 100644 index 0000000..92b2d9a --- /dev/null +++ b/Dockerfile.documentation @@ -0,0 +1,3 @@ +FROM alpine:latest + +RUN apk --no-cache add py3-sphinx py3-sphinx_rtd_theme texlive-full