Commit 7ccce09e authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Updated CI

parent 59ad1691
Pipeline #8027 passed with stages
in 8 minutes and 33 seconds
......@@ -8,9 +8,10 @@ stages:
tags:
- docker
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_REF_NAME == "master"'
changes:
- gms-client/gms-client/*
- .gitlab-ci.yml
build_gms_client:
extends: .gms_client
......@@ -42,9 +43,10 @@ test_gms:
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print "coverage=" 100*covered/instructions }' target/site/jacoco/jacoco.csv
coverage: '/coverage=\d+\.\d+/'
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_REF_NAME == "master"'
changes:
- gms/*
- .gitlab-ci.yml
deploy_gms_client:
extends: .gms_client
......@@ -74,9 +76,10 @@ deploy_gms_lib:
-Durl=${IA2_MVN_REPO_SNAPSHOTS}
-DpomFile=pom.xml
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_REF_NAME == "master"'
changes:
- gms/*
- .gitlab-ci.yml
dockerize_db:
stage: deploy
......@@ -87,10 +90,11 @@ dockerize_db:
- docker build -t "${CI_REGISTRY_IMAGE}/database" -f database/Dockerfile .
- docker push "${CI_REGISTRY_IMAGE}/database"
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_REF_NAME == "master"'
changes:
- database/*
- gms/src/main/resources/sql/*
- .gitlab-ci.yml
dockerize_gms:
stage: deploy
......@@ -101,10 +105,11 @@ dockerize_gms:
- docker build -t "${CI_REGISTRY_IMAGE}" -f gms/Dockerfile .
- docker push "${CI_REGISTRY_IMAGE}"
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_REF_NAME == "master"'
changes:
- gms/*
- gms-ui/*
- .gitlab-ci.yml
upload_jar:
stage: publish
......
Supports Markdown
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