diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 79181ce2aae9e5c21177cc5322b87f73a16ca946..c108b356d7d06e4e89fac0253a22be0e795e534e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 AUTHENTICATION_API_BIND_PORT=3002 - - 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/321/trigger/pipeline" + - 'curl -X POST -F token=$CI_JOB_TOKEN -F ref=master -F variables[TAG]=${TAG} https://forge.grandlyon.com/api/v4/projects/321/trigger/pipeline' build_release: stage: build + tags: + - build only: - tags script: @@ -46,4 +52,4 @@ build_release: - export AUTHENTICATION_API_BIND_PORT=3002 - docker-compose build - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - - docker-compose push \ No newline at end of file + - docker-compose push