From b93cc376b47574bb14ba6eec993f8f4c38df37cd Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Thu, 23 Feb 2023 16:51:15 +0100 Subject: [PATCH] Add CI job to update tricoteuses database --- .gitlab-ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1902e34..e705900 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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