diff --git a/ci_geosphere-test/gitlab-ci.yaml b/ci_geosphere-test/gitlab-ci.yaml
index 052db5e5d42211622ac82dd5600cc322931cb309..3b60262a895ea434170672052238ae40682dd423 100644
--- a/ci_geosphere-test/gitlab-ci.yaml
+++ b/ci_geosphere-test/gitlab-ci.yaml
@@ -43,7 +43,7 @@ gstest deploy rabbit:
   # this job doesn't actually need any artifacts from previous jobs
   dependencies: []
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TEST_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TEST_TAG_REGEX/
       when: never
     # no need to build if another project triggered us
     - if: $CI_PIPELINE_SOURCE == "pipeline"
@@ -122,7 +122,7 @@ gstest deploy mapcache:
     VALUES_DIR: "ci_geosphere-test"
   extends: .deploy_mapcache
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TEST_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TEST_TAG_REGEX/
       when: never
     - when: on_success
 
@@ -147,7 +147,7 @@ gstest deploy client:
   dependencies:
     - get_chart_client_test
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TEST_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TEST_TAG_REGEX/
       when: never
     - when: on_success
 
diff --git a/ci_geosphere/gitlab-ci.yaml b/ci_geosphere/gitlab-ci.yaml
index 50576817c85ccb3f5391b0b3062273815f17b96a..3d293a1c363fa323ecdc352c3081ebcfe4220519 100644
--- a/ci_geosphere/gitlab-ci.yaml
+++ b/ci_geosphere/gitlab-ci.yaml
@@ -19,7 +19,7 @@ gs create geotiff storage:
   # this job doesn't actually need any artifacts from previous jobs
   dependencies: []
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - if: $CREATE_STORAGE
 
@@ -35,7 +35,7 @@ gs create shapefile storage:
   # this job doesn't actually need any artifacts from previous jobs
   dependencies: []
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     # this will always be true for tags
     - changes:
@@ -57,7 +57,7 @@ gs deploy rabbit:
   # this job doesn't actually need any artifacts from previous jobs
   dependencies: []
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     # no need to build if another project triggered us
     - if: $CI_PIPELINE_SOURCE == "pipeline"
@@ -87,7 +87,7 @@ gs deploy g16 grb:
   dependencies:
     - get_chart_grb
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - when: on_success
 
@@ -97,7 +97,7 @@ gs deploy geo2grid g16 radf:
     VALUES_DIR: "ci_geosphere"
     DEPLOY_SUFFIX: "-g16-radf"
   rules:
-    - if: '$CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/'
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - when: on_success
 
@@ -107,7 +107,7 @@ gs deploy geo2grid g16 radc:
     VALUES_DIR: "ci_geosphere"
     DEPLOY_SUFFIX: "-g16-radc"
   rules:
-    - if: '$CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX'
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - when: on_success
 
@@ -137,7 +137,7 @@ gs deploy tile gen g16 radf:
     VALUES_DIR: "ci_geosphere"
     DEPLOY_SUFFIX: "-g16-radf"
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - when: on_success
 
@@ -147,7 +147,7 @@ gs deploy tile gen g16 radc:
     VALUES_DIR: "ci_geosphere"
     DEPLOY_SUFFIX: "-g16-radc"
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - when: on_success
 
@@ -157,7 +157,7 @@ gs deploy_tile_gen_g16_radm1:
     VALUES_DIR: "ci_geosphere"
     DEPLOY_SUFFIX: "-g16-radm1"
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - when: on_success
 
@@ -167,7 +167,7 @@ gs deploy_tile_gen_g16_radm2:
     VALUES_DIR: "ci_geosphere"
     DEPLOY_SUFFIX: "-g16-radm2"
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - when: on_success
 
@@ -179,7 +179,7 @@ gs deploy mapserver:
     VALUES_DIR: "ci_geosphere"
   extends: .deploy_mapserver
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - when: on_success
 
@@ -191,7 +191,7 @@ gs deploy mapcache:
     VALUES_DIR: "ci_geosphere"
   extends: .deploy_mapcache
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - when: on_success
 
@@ -216,6 +216,6 @@ gs deploy client:
   dependencies:
     - get_chart_client
   rules:
-    - if: $CI_COMMIT_TAG !~ $GEOSPHERE_TAG_REGEX
+    - if: $CI_COMMIT_TAG !~ /$GEOSPHERE_TAG_REGEX/
       when: never
     - when: on_success