Commit 430dfb60 authored by Fabien Forestier's avatar Fabien Forestier
Browse files

Adding build tag on jobs

parent 919f857b
Pipeline #6890 passed with stage
in 5 seconds
...@@ -7,6 +7,8 @@ variables: ...@@ -7,6 +7,8 @@ variables:
sonarqube: sonarqube:
stage: sonar-analysis stage: sonar-analysis
tags:
- build
only: only:
- master - master
before_script: before_script:
...@@ -25,19 +27,23 @@ sonarqube: ...@@ -25,19 +27,23 @@ sonarqube:
build_development: build_development:
stage: build stage: build
tags:
- build
only: only:
- development - development
script: script:
- export TAG=$CI_COMMIT_SHORT_SHA - export TAG=$CI_COMMIT_SHORT_SHA
- echo ${TAG} - echo ${TAG}
- export MAIL_SERVICE_BIND_PORT=3000 - 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 login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose push - 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: build_release:
stage: build stage: build
tags:
- build
only: only:
- tags - tags
script: 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