diff --git a/Dockerfile b/Dockerfile index 6131d5228d5f8da9f499fa3731b38575cc3c7a92..b0811e854eb9fbb3122269890d9d4ba198c6e880 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,3 +8,4 @@ RUN apk add librsvg RUN pip install sphinx_rtd_theme RUN apk add texlive-full RUN apk add make +RUN apk add rsync diff --git a/gitlab-build.sh b/gitlab-build.sh index 6f86c0c453cbf9ef25aa51be2b3a4657f8955257..37911e3e8738ed1d94a99dcccd8f9b178e844ca8 100755 --- a/gitlab-build.sh +++ b/gitlab-build.sh @@ -30,6 +30,12 @@ cat <<HERE > public/index.html </html> HERE +# Brought back for more testing... +cp public/index.html /var/www/docs +sudo apk add rsync +rsync -a --delete public/latest/. /var/www/docs/latest +# End testing. + elif [ "$CI_COMMIT_BRANCH" != "" ]; then sphinx-build -b html . public/$CI_COMMIT_BRANCH/ @@ -70,6 +76,7 @@ sphinx-build -M latexpdf . public/$GIT_BRANCH/ cp public/$GIT_BRANCH/latex/beagleboard-docs.pdf public/$GIT_BRANCH/beagleboard-docs-$CI_COMMIT_TAG.pdf cp public/$GIT_BRANCH/latex/beagleboard-docs.pdf public/$GIT_BRANCH/beagleboard-docs.pdf rm -rf public/$GIT_BRANCH/latex +sudo apk add rsync rsync -a --delete public/$GIT_BRANCH/. /var/www/docs/$GIT_BRANCH fi