Skip to content
Snippets Groups Projects
Commit 5873bdcc authored by Helene Rimbert's avatar Helene Rimbert
Browse files

CICD: deploy Docker for ci and gitlab-ci.yml

parent 6e5980c0
No related branches found
No related tags found
1 merge request!118 sphinx doc
Pipeline #159518 failed
image: python:3.7-alpine
#image: python:3.7-alpine
image: registry.forgemia.inra.fr/umr-gdec/magatt
test:
stage: test
stage: deploy
script:
- pip install -U sphinx
- pip install sphinx sphinx-rtd-theme
- pip install --upgrade myst-parser
- sphinx-build -b html docs public
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
- sphinx-build -b html docs public
artifacts:
paths:
- public
# generate sphinx doc, published in gitlab pages
pages:
stage: deploy
script:
- pip install -U sphinx
- pip install sphinx sphinx-rtd-theme
- pip install --upgrade myst-parser
- sphinx-build -b html docs public
- sphinx-build -b html docs public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
......@@ -30,6 +30,7 @@ RUN apt update && \
pip install pysam && \
pip install -U sphinx && \
pip install -U sphinx-rtd-theme && \
pip install --upgrade myst-parser && \
# Clean image
apt clean -y && \
pip cache purge && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment