diff --git a/.ci/build-docker.sh b/.ci/build-docker.sh index 16f877e343b..9df4c932c68 100755 --- a/.ci/build-docker.sh +++ b/.ci/build-docker.sh @@ -41,7 +41,9 @@ docker_build --target make-all --tag make-all:$DOCKER_TAG . # Copy docs out of the docker image to save them into browseable GitLab artifacts container=$(docker create make-all:$DOCKER_TAG) -docker cp $container:/home/sage/sage/local/share/doc/sage/html html +docker cp $container:/home/sage/sage/local/share/doc/sage/html html_ +# GitLab's browser does not like symlinks, so we flatten them +rsync html_/ html/ -a --copy-links # Build the release image without build artifacts. docker_build --target sagemath --tag "$DOCKER_IMAGE_CLI" . diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 770fe3421e4..accca9971e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -91,7 +91,7 @@ build-from-latest: - html expire_in: 1 month script: - - apk --update add coreutils + - apk --update add coreutils rsync # The output of the build can get larger than gitlab.com's limit; only # print the first 1MB (and the last 80 lines.) GitLab's limit is 4MB, # however, the list of all branches and tags that shows up in the initial