Add CI job to update tricoteuses database
This commit is contained in:
parent
b5e5fa213f
commit
b93cc376b4
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue