From e06df346f7f3be93d625e9320527552f67608986 Mon Sep 17 00:00:00 2001
From: Jon Azpiazu <jon.azpiazu@tecnalia.com>
Date: Tue, 23 Nov 2021 09:40:09 +0100
Subject: [PATCH] Fix tag name for ddeploy docker image

---
 ci-templates/README.adoc                 | 2 +-
 ci-templates/industrial-ci-templates.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ci-templates/README.adoc b/ci-templates/README.adoc
index 5683239..63c27c7 100644
--- a/ci-templates/README.adoc
+++ b/ci-templates/README.adoc
@@ -23,7 +23,7 @@ The Core pipeline, defined in link:ci-templates/core.yml[], has the following st
     ** Calls `ddeploy` to generate the docker image
     ** Renames the image created by ddeploy with different tags and pushes them to the registry.
     *** Tag `${COMMIT_SHA}` (hash of commit)
-    *** Tag `${CI_COMMIT_REF_SLUG}` (branch or tag name)
+    *** Tag `${CI_COMMIT_REF}` (branch or tag name)
     *** Tag `latest` only on the default branch
 - Stage: `.post`
   * Check `bash`/`sh` script syntax
diff --git a/ci-templates/industrial-ci-templates.yml b/ci-templates/industrial-ci-templates.yml
index 4ab2d62..81de0f2 100644
--- a/ci-templates/industrial-ci-templates.yml
+++ b/ci-templates/industrial-ci-templates.yml
@@ -19,7 +19,7 @@
   variables:
     DOCKER_PUSH_REGISTRY: ${ARTIFACT_DOCKER_URL}
     DOCKER_PUSH_NAME: ${CI_PROJECT_PATH}
-    DOCKER_PUSH_TAG: ${CI_COMMIT_REF_SLUG}
+    DOCKER_PUSH_TAG: ${CI_COMMIT_REF}
     DDEPLOY_YAML: ddeploy.yaml
   before_script:
     - apk add --update python3 git py3-pip git-lfs
-- 
GitLab