From a010277cffc433f1139e19764b23c8b531e6fb1e Mon Sep 17 00:00:00 2001
From: Andreas Fehn <andreas.fehn@tu-dresden.de>
Date: Mon, 23 Jul 2018 10:50:11 +0000
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 86ccb0f..7316c82 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,16 +19,14 @@ build:
     paths:
       - .gradle/wrapper
       - .gradle/caches
-#  only:
-#    - tags
+  only:
+    - tags
   tags:
     - dockered
 
 publish:
   stage: deploy
   image: bravissimolabs/alpine-git
-  variables:
-    CI_DEBUG_TRACE: "true"
   before_script:
     - mkdir -pvm 0700 ~/.ssh
     - echo "$SSH_SECRET_DEPLOY_KEY" | tr -d '\r' > ~/.ssh/id_rsa
@@ -37,7 +35,7 @@ publish:
     - git config user.email "$GITLAB_USER_EMAIL"
     - export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`}
     - echo $VERSION
-    - echo `git remote get-url origin`
+    - echo $CI_REPOSITORY_URL | sed -E 's/.*@([^\/]+?(\:\d+)?)\//git@\1:/'
   script:
     - git checkout ivy-repo || git checkout --orphan ivy-repo
     - git reset
-- 
GitLab