diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 36d9e6498eae9fe38a8c37720c116a059fbe76f1..81dbb4a6dc9d2edf3e73fbae6f1ef3d4d177f1f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,51 @@ image: python:3.7-alpine variables: - S3_BUCKET_NAME_fr: "documentation.veremes.net/vmap/fr" - S3_BUCKET_NAME_DEV_fr: "documentation.veremes.net/vmap-dev/fr" + S3_BUCKET_NAME_PROD: "documentation.veremes.net/vmap" + S3_BUCKET_NAME_DEV: "documentation-dev.veremes.net/vmap" -# Deploiement documentation francaise -# deploy-gtf-fr-documentation: -# stage: deploy -# script: -# - pip install awscli -# - pip install -U sphinx -# - pip install sphinx_rtd_theme==0.5.2 -# - pip install sphinx-markdown-parser -# - pip install myst-parser -# - pip install pymdown-extensions -# - sphinx-build -b html doc/source doc/build -# - aws s3 cp doc/build/ s3://$S3_BUCKET_NAME_fr/ --recursive -# tags: -# - deployment -# only: -# refs: -# - master -# changes: -# - doc/**/* +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/**/* + +# Deploiement documentation francaise en developpement +deploy-fr-dev: + stage: deploy + script: + - sphinx-build -b html doc/source doc/build + - aws s3 cp doc/build/ s3://$S3_BUCKET_NAME_DEV/ --recursive + tags: + - deployment + - eslint + - test + only: + refs: + - documentation + changes: + - doc/source/**/*