Nantes Université

Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 16f45720 rédigé par Féry Mathieu (Mathius)'s avatar Féry Mathieu (Mathius)
Parcourir les fichiers

feat(ci): Update ci for prevent run execessive jobs (Like re-index)

parent 6fa0e5fc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #34437 réussi
......@@ -92,6 +92,11 @@ build:swagger:
- target/swagger.yaml
environment:
name: $CI_COMMIT_REF_SLUG-swagger
only:
changes:
- "src/*"
- pom.xml
- gitlab-ci.yml
build:index:
stage: build
......@@ -102,6 +107,10 @@ build:index:
- index.yaml
environment:
name: $CI_COMMIT_REF_SLUG-index
only:
changes:
- index.yaml
- gitlab-ci.yml
build:jar:
<<: *baseBuild
......@@ -151,6 +160,11 @@ deploy:benchmark:
artifacts: false
script:
- curl --request POST --form token=$BENCHMARK_TOKEN --form ref=$CI_COMMIT_REF_SLUG "https://gitlab.univ-nantes.fr/api/v4/projects/$BENCHMARK_ID/trigger/pipeline"
only:
changes:
- "src/*"
- pom.xml
- gitlab-ci.yml
.base:deploy: &baseDeploy
<<: *baseGCP
......@@ -193,6 +207,11 @@ deploy:docs:
- "echo \" address: https://$DOMAIN\" >> openapi-run.yaml"
- "echo ' protocol: h2' >> openapi-run.yaml"
- gcloud endpoints services deploy openapi-run.yaml
only:
changes:
- "src/*"
- pom.xml
- gitlab-ci.yml
deploy:index:clear:
<<: *baseDeploy
......@@ -204,6 +223,10 @@ deploy:index:clear:
- echo "indexes:" >> index.yaml
- echo "Y" >> temp
- gcloud datastore indexes cleanup index.yaml < temp
only:
changes:
- index.yaml
- gitlab-ci.yml
deploy:index:
<<: *baseDeploy
......@@ -218,4 +241,8 @@ deploy:index:
- gcloud datastore indexes create index/index.yaml < temp
parallel:
matrix:
- REF: [master, develop]
\ No newline at end of file
- REF: [master, develop]
only:
changes:
- index.yaml
- gitlab-ci.yml
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter