Unverified Commit 0dd10ca8 authored by Féry Mathieu (Mathius)'s avatar Féry Mathieu (Mathius)
Browse files

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

parent 6fa0e5fc
Pipeline #34454 passed with stages
in 5 minutes and 47 seconds
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment