diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81dbb4a6dc9d2edf3e73fbae6f1ef3d4d177f1f4..40f60b620d1725310df90e69aa5644a6e91115e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,38 +1,24 @@ -image: python:3.7-alpine +image: veremes/sphinx-doc:latest variables: S3_BUCKET_NAME_PROD: "documentation.veremes.net/vmap" S3_BUCKET_NAME_DEV: "documentation-dev.veremes.net/vmap" -before_script: - - apk update && apk add git && apk add tzdata - - apk add build-base - - cp /usr/share/zoneinfo/Europe/Paris /etc/localtime - - echo "Europe/Paris" > /etc/timezone - - TZ=Europe/Paris - - pip install sphinx - - pip install sphinx-intl - - pip install sphinx_rtd_theme==0.5.2 - - pip install sphinx-markdown-parser - - pip install myst-parser - - pip install awscli - - pip install pymdown-extensions - # Deploiement documentation francaise en production -#deploy-fr-prod: -# stage: deploy -# script: -# - sphinx-build -b html documentation/source documentation/build -# - aws s3 cp documentation/build/ s3://$S3_BUCKET_NAME_PROD/ --recursive -# tags: -# - deployment -# - eslint -# - test -# only: -# refs: -# - master -# changes: -# - documentation/source/**/* +deploy-fr-prod: + stage: deploy + script: + - sphinx-build -b html doc/source doc/build + - aws s3 cp doc/build/ s3://$S3_BUCKET_NAME_PROD/ --recursive + tags: + - deployment + - eslint + - test + only: + refs: + - master + changes: + - doc/source/**/* # Deploiement documentation francaise en developpement deploy-fr-dev: