Skip to content
Snippets Groups Projects
Commit 7e96e093 authored by Philippe Ruiz's avatar Philippe Ruiz
Browse files

changes rules to build the doc in function of commit tag

parent 5bf24e2c
No related branches found
No related tags found
No related merge requests found
Pipeline #280202 failed
......@@ -8,8 +8,19 @@ stages:
- deploy
build_docs:
stage: build_docs
image: python:3.8.10-slim
rules:
- if: "$CI_COMMIT_TAG == null"
variables: # Override IMAGE_LABEL defined
IMAGE_LABEL: "${CI_COMMIT_BRANCH}_${CI_COMMIT_SHORT_SHA}" # at the job level.
when: manual
- if: "$CI_COMMIT_TAG != null"
variables: # Override IMAGE_LABEL defined
IMAGE_LABEL: "$CI_COMMIT_TAG" # at the job level.
when: always
stage: build_docs
script:
- pip install -r docs/requirements.txt
- sphinx-build -b html docs/source/ build/html
......@@ -18,7 +29,6 @@ build_docs:
- build/html
only:
- master
- devel
singularity-image-metag:
variables:
......@@ -70,4 +80,3 @@ pages:
- public
only:
- master
- devel
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