From 7389e849199ed753623856222ad55e1584ea5880 Mon Sep 17 00:00:00 2001
From: Anders Harrisson <anders.harrisson@ess.eu>
Date: Tue, 8 Mar 2022 11:55:52 +0100
Subject: [PATCH] Use CI_COMMIT_REF_SLUG as container image tag in CI pipeline

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index aa8a86c6..68676df5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,6 @@
 
 variables:
-  CONTAINER_BRANCH_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
+  CONTAINER_BRANCH_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
 
 stages:
   - compile
@@ -94,7 +94,7 @@ docker-release:
   script:
     - >
       awx job_templates launch ${AWX_JOB_TEMPLATE}
-      --extra_vars "naming_container_image_tag: $CI_COMMIT_REF_NAME"
+      --extra_vars "naming_container_image_tag: $CI_COMMIT_REF_SLUG"
       --monitor
   dependencies: []
   only:
-- 
GitLab