From bc9d60899b8a66875a22f74558c2e45666a9b243 Mon Sep 17 00:00:00 2001 From: Elia Date: Thu, 22 Feb 2024 07:36:28 +0000 Subject: [PATCH] Update .gitlab-ci.yml file Added temp debug conditions --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d985b29..6cf3ea67 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -196,6 +196,30 @@ tag_release: env_tags="$CI_COMMIT_TAG prod" code_tag="prod" + + #adding temporary debug code to find the right condition + if [ "$is_master" == "true"]; then + echo "1 is true" + fi + if [[ $CI_COMMIT_TAG =~ "dev" ]]; then + echo "2 is true" + fi + if [ "$is_master" == "true"] || [[ $CI_COMMIT_TAG =~ "dev" ]]; then + echo "3 is true" + fi + if [ "$is_master" == "true" || $CI_COMMIT_TAG =~ "dev" ]; then + echo "4 is true" + fi + if [[ "$is_master" == "true" || $CI_COMMIT_TAG =~ "dev" ]]; then + echo "5 is true" + fi + if [ "$is_master" == "true"] || [ $CI_COMMIT_TAG =~ "dev" ]; then + echo "6 is true" + fi + if [ "$is_master" == "true"] || [ "$CI_COMMIT_TAG" =~ "dev" ]; then + echo "7 is true" + fi + if [ "$is_master" == "true"] || [[$CI_COMMIT_TAG =~ "dev" ]]; then if [[ $CI_COMMIT_TAG =~ "dev" ]]; then