Commit 51444994 authored by Duncan Macleod's avatar Duncan Macleod

attempt to fix docs

parent 259ba5b9
Pipeline #47534 failed with stages
in 26 minutes and 49 seconds
......@@ -8,6 +8,7 @@ stages:
- deploy
variables:
CVMFS_BASE_DIR: "/cvmfs/ligo-containers.opensciencegrid.org/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}"
DOCKER_DRIVER: overlay
TAG: $CI_REGISTRY_IMAGE:latest
NIGHTLY: $CI_REGISTRY_IMAGE:nightly
......@@ -28,7 +29,7 @@ build-latest:
only:
- master
script:
- docker build --no-cache --pull -t $TAG --build-arg INSTALL_PATH=/cvmfs/ligo-containers.opensciencegrid.org/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/latest .
- docker build --no-cache --pull -t $TAG --build-arg INSTALL_PATH=${CVMFS_BASE_DIR}/latest .
- docker push $TAG
build-nightly:
......@@ -43,18 +44,19 @@ build-nightly:
docs:
stage: docs
image: $TAG
dependencies:
- build-latest
only:
- master
before_script:
- CONDA_BASE="${CVMFS_BASE_DIR}/latest"
- mkdir -pv ${CONDA_BASE}
- docker save ${TAG} | tar -x -C ${CONDA_BASE}
script:
- CONDA_BASE="/cvmfs/ligo-containers.opensciencegrid.org/lscsoft/conda/latest"
- PYTHON=${CONDA_BASE}/bin/python
- source ${CONDA_BASE}/etc/profile.d/conda.sh
- ${PYTHON} -m pip install -r docs/requirements.txt --user
- python -m pip install -r docs/requirements.txt --user
- cd docs
- ${PYTHON} -m sphinx -M html . ../build/sphinx
- source ${CONDA_BASE}/etc/profile.d/conda.sh
- python -m sphinx -M html . ../build/sphinx
artifacts:
paths:
- build/sphinx/html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment