From 5873bdcccf7298244db77bd6aa10886e59295ac4 Mon Sep 17 00:00:00 2001 From: Helene RIMBERT <helene.rimbert@inrae.fr> Date: Thu, 11 Jan 2024 17:45:53 +0100 Subject: [PATCH] CICD: deploy Docker for ci and gitlab-ci.yml --- .gitlab-ci.yml | 25 +++++++++++-------------- Dockerfile | 1 + 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 195333f..09d3c76 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,24 +1,21 @@ -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 + diff --git a/Dockerfile b/Dockerfile index 3ea9705..b6e5b56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ -- GitLab