Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mathieu Féry
M1Alma WebAndCloud Server
Commits
0dd10ca8
Unverified
Commit
0dd10ca8
authored
Dec 09, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0dd10ca8
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment