From 430dfb602ed3e3abaf009812e70a9a6eba4a35bb Mon Sep 17 00:00:00 2001
From: Fabien Forestier <fforestier@deb-sat-test-2.neogeo.local>
Date: Tue, 25 Aug 2020 16:26:39 +0200
Subject: [PATCH] Adding build tag on jobs

---
 .gitlab-ci.yml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cb40e51..6889aaf 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 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:
-- 
GitLab