Commit 0c33db70 authored by Christophe Benz's avatar Christophe Benz
Browse files

Update CI config

parent 32a4e336
......@@ -4,15 +4,27 @@ before_script:
- apt --yes update
- apt --yes install --no-install-recommends git python3 python3-pip python3-setuptools
- pip3 install --requirement requirements.txt
# Run ssh-agent (inside the build environment).
- eval $(ssh-agent -s)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store.
- ssh-add <(echo "$SSH_PRIVATE_KEY")
# Add the SSH keys of remote Git servers, to disable host key checking questions.
- mkdir -p ~/.ssh
- ssh-keyscan -t rsa git.opendatafrance.net >> ~/.ssh/known_hosts
- git config --global push.default simple
- git config --global user.email "validata-doc@validata.fr"
- git config --global user.name "Validata documentation builder"
- git config --global user.email "validata-doc-generator@validata.fr"
- git config --global user.name "Validata documentation generator"
job:
stage: build
script:
- python3 validata_schemas_to_md.py static/schemas
- git checkout -B "$CI_BUILD_REF_NAME" "$CI_BUILD_REF"
- git clone git@git.opendatafrance.net:validata/validata-doc.git
- python3 validata_schemas_to_md.py validata-doc/schemas
- cd validata-doc
- git add -A
- git commit -m "Update documentation" || true
- git push origin master
- git push
# Validata-doc
# validata-doc-generator
## Génération de documentation en Markdown
......@@ -11,5 +11,5 @@ python3 table_schema_to_md.py table_schema.json > output.md
Générer un fichier Markdown pour chacun des schémas de Validata :
```bash
python3 validata_schemas_to_md.py static/schemas
python3 validata_schemas_to_md.py /path/to/validata-doc/schemas/
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment