diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6625afe00be5e40e9278f8bbe88052f93aaab6a4..fb77763ae2b556d9460506837bd172187c3a8983 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,15 +26,12 @@ cache: stages: - # - build-df-cli - # - deploy-meilisearch - zotero - - manual + - delete-release - get-meili-key + - pre-processing - build - # - build-wiki - lint - # - update-meilisearch-indexes - deploy - post-deploy @@ -57,7 +54,7 @@ stages: build:df-wiki-cli: image: python:3.11-bullseye - stage: manual + stage: pre-processing before_script: - cd packages/df-wiki-cli/ - pip install poetry @@ -78,7 +75,7 @@ build:df-wiki-cli: ################ DEPLOY MEILISEARCH ################# .deploy:meilisearch: - stage: manual + stage: pre-processing image: harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION variables: CI_DEBUG_TRACE: "false" @@ -143,7 +140,7 @@ deploy:meilisearch:prod: delete-meilisearch-release:dev: rules: - if: $CI_COMMIT_BRANCH != "main" - stage: manual + stage: delete-release when: manual image: harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION variables: @@ -160,7 +157,7 @@ delete-meilisearch-release:dev: delete-meilisearch-release:prod: rules: - if: $CI_COMMIT_BRANCH == "main" - stage: manual + stage: delete-release when: manual image: harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION variables: @@ -187,7 +184,7 @@ lint: # Update Meili search indexes + generate some file that goes to meilisearch .update-meilisearch-index: extends: .df-wiki-cli-run - stage: manual + stage: pre-processing variables: MEILI_HOST: "http://localhost:7700" script: @@ -407,7 +404,7 @@ set-meili-env:prod: - if: $CI_COMMIT_BRANCH == "main" ############################## -sync-zotero: +.sync-zotero: extends: .df-wiki-cli-run stage: zotero script: @@ -419,6 +416,17 @@ sync-zotero: rules: - if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "dev" +sync-zotero:dev: + extends: .sync-zotero + when: manual + rules: + - if: $CI_COMMIT_BRANCH == "dev" + +sync-zotero:prod: + extends: .sync-zotero + rules: + - if: $CI_COMMIT_BRANCH == "main" + ################ BUILD ########################## @@ -544,7 +552,7 @@ deploy:prod: delete-wiki-release:dev: rules: - if: $CI_COMMIT_BRANCH != "main" - stage: manual + stage: delete-release when: manual image: harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION variables: @@ -560,7 +568,7 @@ delete-wiki-release:dev: delete-wiki-release:prod: rules: - if: $CI_COMMIT_BRANCH == "main" - stage: manual + stage: delete-release when: manual image: harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION variables: