From 87538b835d0aa573a0877de904d3daa30c2eaece Mon Sep 17 00:00:00 2001
From: Simon Oehrl <oehrl@vr.rwth-aachen.de>
Date: Thu, 19 Mar 2020 18:12:34 +0100
Subject: [PATCH] Put test in quotes

---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ab5b0d0..cb3665f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,6 +29,7 @@ deploy:master:
     script:
         - docker build -t rwthvr/insite-nest-module .
         - VERSION=$(git tag --points-at $CI_COMMIT_SHA)
+        - "[[ $VERSION =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?$ ]]"
         - docker tag rwthvr/insite-nest-module rwthvr/insite-nest-module:$VERSION
         - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
         - docker push rwthvr/insite-nest-module
-- 
GitLab