Add CI job to update tricoteuses database

This commit is contained in:
Emmanuel 2023-02-23 16:51:15 +01:00
parent b5e5fa213f
commit b93cc376b4

View file

@ -7,7 +7,12 @@ default:
variables:
DATASET:
description: "Dataset to import (either dole, jorf, kali or legi"
description: "Select the dataset to import."
options:
- "dole"
- "jorf"
- "kali"
- "legi"
value: dole
## Ensure that all the Git tags are retrieved.
## https://docs.gitlab.com/ee/user/project/pipelines/settings.html#git-shallow-clone
@ -19,6 +24,7 @@ stages:
- build
# - test
- download
- update
build:
stage: build
@ -87,3 +93,10 @@ download:
- npx tsx src/scripts/download_dila_dataset.ts ${DATASET} dila-data/ --push
timeout: 6 hours
update_database:
stage: update
only:
- schedules
- web
trigger: tricoteuses/tricoteuses-legal-update