Commit 09eef796 authored by Fabien FORESTIER's avatar Fabien FORESTIER
Browse files

Merge branch 'development' into 'master'

Adding build tag on jobs

See merge request !10
parents b0cf1213 430dfb60
Pipeline #6891 passed with stage
in 16 seconds
......@@ -7,6 +7,8 @@ variables:
sonarqube:
stage: sonar-analysis
tags:
- build
only:
- master
before_script:
......@@ -25,19 +27,23 @@ sonarqube:
build_development:
stage: build
tags:
- build
only:
- development
script:
- export TAG=$CI_COMMIT_SHORT_SHA
- echo ${TAG}
- export MAIL_SERVICE_BIND_PORT=3000
- docker-compose build
- docker-compose build
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose push
- "curl -X POST -F token=$CI_JOB_TOKEN -F ref=master -F variables[TAG]=${TAG} https://forge.grandlyon.com/api/v4/projects/327/trigger/pipeline"
- 'curl -X POST -F token=$CI_JOB_TOKEN -F ref=master -F variables[TAG]=${TAG} https://forge.grandlyon.com/api/v4/projects/327/trigger/pipeline'
build_release:
stage: build
tags:
- build
only:
- tags
script:
......
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