From a2405fe3e2af289003003b671d860a43c0f2d174 Mon Sep 17 00:00:00 2001
From: Domenico Giordano <domenico.giordano@cern.ch>
Date: Tue, 1 Sep 2020 12:05:53 +0000
Subject: [PATCH] Promote procedure

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 63db2da..840e280 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -116,7 +116,7 @@ promote_patatrack:
 ### LHC Simple Track
 #####################################################
 
-simpletrack:
+build_simpletrack:
   stage: triggers
   trigger:
     include: lhc/simpletrack/.simpletrack-ci.yml
@@ -124,8 +124,18 @@ simpletrack:
   only:
     variables:
     - $CI_COMMIT_BRANCH =~ /^qa.*$/
-    - $CI_COMMIT_TAG =~ /^simpletrack-v.*$/
+    #- $CI_COMMIT_TAG =~ /^simpletrack-v.*$/
     changes:
     - lhc/simpletrack/Dockerfile.*
     - lhc/simpletrack/lhc-simpletrack.*
     - lhc/simpletrack/.simpletrack-ci.yml
+
+
+promote_simpletrack:
+  <<: *template_promote_prod_image
+  only:
+    variables:
+      - $CI_COMMIT_TAG =~ /^simpletrack-v.*$/
+  before_script:
+    - export IMAGE_NAME=$CI_REGISTRY_IMAGE/simpletrack/intel
+    - export IMAGE_TAG:ci-qa-latest
-- 
GitLab