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